-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'setupDevtoolsPlugin' is not exported by unenv
#13743
'setupDevtoolsPlugin' is not exported by unenv
#13743
Comments
would you provide a reproduction? 🙏 |
n/a |
This seems like an issue with pnpm and externals. (unjs/nitro#106) |
any updates? |
I'm using yarn v1.22.18 and also getting this; which indicates to me that it's not pnpm related. |
For the sake of completeness: start Building server... nitro 16:34:35
ERROR Rollup error: 'setupDevtoolsPlugin' is not exported by node_modules/unenv/runtime/mock/proxy.mjs, imported by node_modules/pinia/dist/pinia.mjs
ERROR 'setupDevtoolsPlugin' is not exported by node_modules/unenv/runtime/mock/proxy.mjs, imported by node_modules/pinia/dist/pinia.mjs
at error (node_modules/rollup/dist/es/shared/rollup.js:1829:30)
at Module.error (node_modules/rollup/dist/es/shared/rollup.js:12390:16)
at Module.traceVariable (node_modules/rollup/dist/es/shared/rollup.js:12748:29)
at ModuleScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:11378:39)
at FunctionScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:6346:38)
at ChildScope.findVariable (node_modules/rollup/dist/es/shared/rollup.js:6346:38)
at Identifier.bind (node_modules/rollup/dist/es/shared/rollup.js:7637:40)
at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:5211:23)
at CallExpression.bind (node_modules/rollup/dist/es/shared/rollup.js:8819:15)
at ExpressionStatement.bind (node_modules/rollup/dist/es/shared/rollup.js:5211:23) |
@micheee @jontybrook Would you please provide a reproduction? 🙏🏼 |
unenv
any updates? |
The cause is that pinia imports As a workaround, you can do: import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
alias: {
'@vue/devtools-api': '@vue/devtools-api',
},
modules: ['@pinia/nuxt'],
}) |
@danielroe Thank you for the workaround. Like previously mentioned, I am also using Yarn and not PnPM. My build steps are:
The errors prior to the alias workaround were:
|
@danielroe does https://stackblitz.com/edit/github-8cjrqx?file=package.json serve as an adequate reproduction? Or do we need a full repo? |
No need for further reproduction 👍 |
@brandonratz upgrade your yarn version from 1 to 2 https://yarnpkg.com/getting-started/migration#step-by-step
and repeat build |
Any news? |
Can be reproduced on 3.0.0 rc4 with npm Update: my problem is caused by vuex. fixed by migrating to pinia. nuxt.config.ts import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
buildModules: [
'@pinia/nuxt',
],
}) |
Change that to ~4.0.16 |
thanks, it works ! |
So is this a bug that was in vue-router @danielroe ? |
It's not a bug in We've pinned vue-router in future edge/RC releases until we resolve: nuxt/framework#5767 |
I'm getting the same error over and over in an infinite loop until an OOM occurs.
We tried pinning our vue-router to 4.0.16 via What else could we try? |
BTW, as another hint, this problem doesn't occur on our Windows local dev machine, but only when we deploy remotely to Ubuntu 22 LTS. |
Just encountered same error today |
Seems like this was fixed 2 hours ago |
Should be fixed in RC.5. You can remove workarounds. |
Would you ensure you can replicate after running |
I am experiencing the same after upgrading to nuxt rc8. Here is a small reproduction repo (Nuxt 3 RC8 + nuxt-i18n): https://stackblitz.com/edit/nuxt-starter-dyand4?file=package.json |
@ma-jahn I can't reproduce with that stackblitz - it seems to be working fine. |
Hi @danielroe
Could not find how to change the default npm command within that stackblitz 🤷 UPDATE |
Just upgraded to @danielroe @pi0 Thank you so much for this blazing fast fix! |
i fail, but in this way success
i use npm
|
You should definitely not install |
thanks, after I uninstalled @nuxtjs/composition-api, the packaging was still successful |
Environment
NUXT 3 : 3.0.0-27497374.59593a0
NODE : 16.4.2
pnpm": "^6.32.3"
Reproduction
.
Describe the bug
when normaly build its fine.
![image](https://user-images.githubusercontent.com/13347455/163191690-78da4ea7-0795-4496-b709-41b5a5c71664.png)
Additional context
my nuxt config not set preset.
when im build NITRO_PRESET=cloudflare pnpm build.
Logs
Error like this:
The text was updated successfully, but these errors were encountered: