Getting `module 'unplugin' does not provide an export named 'createVitePlugin'
Often times when deploying on Vercel and that it uses the previous build cache, the app won't compile with this error:
If I rebuild it without cache, it works again.
Any idea what's happening?
landing-page:build: vinxi v0.5.1
landing-page:build: file:///vercel/path0/node_modules/@tanstack/router-plugin/dist/esm/vite.js:1
landing-page:build: import { createVitePlugin } from "unplugin";
landing-page:build: ^^^^^^^^^^^^^^^^
landing-page:build: SyntaxError: The requested module 'unplugin' does not provide an export named 'createVitePlugin'
landing-page:build: at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
landing-page:build: at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
landing-page:build: at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
landing-page:build: at async loadFile (file:///vercel/path0/node_modules/vinxi/lib/load-app.js:83:25)
landing-page:build: at async loadApp (file:///vercel/path0/node_modules/vinxi/lib/load-app.js:137:19)
landing-page:build: at async Object.run (file:///vercel/path0/node_modules/vinxi/bin/cli.mjs:229:17)
landing-page:build: at async runCommand (file:///vercel/path0/node_modules/citty/dist/index.mjs:316:16)
landing-page:build: at async runCommand (file:///vercel/path0/node_modules/citty/dist/index.mjs:307:11)
landing-page:build: at async runMain (file:///vercel/path0/node_modules/citty/dist/index.mjs:445:7)
landing-page:build: [error] Couldn't load app
landing-page:build: at Object.run (/vercel/path0/node_modules/vinxi/bin/cli.mjs:231:12)
landing-page:build: at async runCommand (/vercel/path0/node_modules/citty/dist/index.mjs:316:16)
landing-page:build: at async runCommand (/vercel/path0/node_modules/citty/dist/index.mjs:307:11)
landing-page:build: at async runMain (/vercel/path0/node_modules/citty/dist/index.mjs:445:7)
landing-page:build:
landing-page:build: [error] Couldn't load app
landing-page:build: vinxi v0.5.1
landing-page:build: file:///vercel/path0/node_modules/@tanstack/router-plugin/dist/esm/vite.js:1
landing-page:build: import { createVitePlugin } from "unplugin";
landing-page:build: ^^^^^^^^^^^^^^^^
landing-page:build: SyntaxError: The requested module 'unplugin' does not provide an export named 'createVitePlugin'
landing-page:build: at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
landing-page:build: at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
landing-page:build: at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
landing-page:build: at async loadFile (file:///vercel/path0/node_modules/vinxi/lib/load-app.js:83:25)
landing-page:build: at async loadApp (file:///vercel/path0/node_modules/vinxi/lib/load-app.js:137:19)
landing-page:build: at async Object.run (file:///vercel/path0/node_modules/vinxi/bin/cli.mjs:229:17)
landing-page:build: at async runCommand (file:///vercel/path0/node_modules/citty/dist/index.mjs:316:16)
landing-page:build: at async runCommand (file:///vercel/path0/node_modules/citty/dist/index.mjs:307:11)
landing-page:build: at async runMain (file:///vercel/path0/node_modules/citty/dist/index.mjs:445:7)
landing-page:build: [error] Couldn't load app
landing-page:build: at Object.run (/vercel/path0/node_modules/vinxi/bin/cli.mjs:231:12)
landing-page:build: at async runCommand (/vercel/path0/node_modules/citty/dist/index.mjs:316:16)
landing-page:build: at async runCommand (/vercel/path0/node_modules/citty/dist/index.mjs:307:11)
landing-page:build: at async runMain (/vercel/path0/node_modules/citty/dist/index.mjs:445:7)
landing-page:build:
landing-page:build: [error] Couldn't load app
0 Replies