Skip to content
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

Nuxt Module build failed @babel/plugin-proposal-private-property-in-object #21489

Closed
Eugene313 opened this issue Jun 9, 2023 · 8 comments
Closed
Assignees

Comments

@Eugene313
Copy link

Environment

Operating System: Windows or Mac
Node Version: v16.20.0
Nuxt Version: 2.16.3

Package Manager: npm@8.19.4

User Config: -
Runtime Modules: -
Build Modules: -

Reproduction

Use npm init nuxt-app test

cd test

npm install

npm run build

Describe the bug

ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.22.5_webpack@4.46.0/node_modules/babel-loader/lib/index.js):
Error: [BABEL] C:\Users\Eugene\Desktop\prozorro.purchase-front.nuxt\client.js: --- PLACEHOLDER PACKAGE ---
This @babel/plugin-proposal-private-property-in-object version is not meant to
be imported. Something is importing
@babel/plugin-proposal-private-property-in-object without declaring it in its
dependencies (or devDependencies) in the package.json file.
Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies
to work around this error.

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

fix in progress at #21488

Copy link
Member

This should be resolved in the edge channel shortly (using nuxt-edge), or in the next release (2.17) which we plan for this weekend.

@danielroe danielroe mentioned this issue Jun 9, 2023
@danielroe danielroe self-assigned this Jun 9, 2023
@danielroe
Copy link
Member

This should be resolved in the latest release. Let me know if not and I'll happily reopen.

@Eugene313
Copy link
Author

Eugene313 commented Jun 12, 2023

@danielroe still doesn't working at 2.17.0

ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.22.5_webpack@4.46.0/node_modules/babel-loader/lib/index.js):
Error: [BABEL] C:\Users\Eugene\Desktop\prozorro.purchase-front.nuxt\client.js: Cannot find module '@babel/plugin-proposal-private-property-in-object'
Require stack:

  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm@nuxt+babel-preset-app@2.15.8_vue@2.7.14\node_modules@nuxt\babel-preset-app\src\index.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm@babel+core@7.22.5\node_modules@babel\core\lib\config\files\module-types.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm@babel+core@7.22.5\node_modules@babel\core\lib\config\files\configuration.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm@babel+core@7.22.5\node_modules@babel\core\lib\config\files\index.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm@babel+core@7.22.5\node_modules@babel\core\lib\index.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm\babel-loader@8.3.0_@babel+core@7.22.5_webpack@4.46.0\node_modules\babel-loader\lib\index.js
  • C:\Users\Eugene\Desktop\prozorro.purchase-front\node_modules.pnpm\loader-runner@2.4.0\node_modules\loader-runner\lib\loadLoader.js

@danielroe
Copy link
Member

danielroe commented Jun 12, 2023

You may need to refresh your lockfile. It works fine on a fresh install as far as I can tell.

Feel free to provide a reproduction and I'll investigate further.

@memlucky71
Copy link

memlucky71 commented Jun 13, 2023

I had the same problem.

Operating System: Ubuntu
Node Version: v14.21.3
Nuxt Version: 2.15.8

ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /home/mohammad/workspace/hammerhead/.nuxt/client.js: --- PLACEHOLDER PACKAGE ---
This @babel/plugin-proposal-private-property-in-object version is not meant to
be imported. Something is importing
@babel/plugin-proposal-private-property-in-object without declaring it in its
dependencies (or devDependencies) in the package.json file.
Add "@babel/plugin-proposal-private-property-in-object" to your devDependencies
to work around this error. This will make this message go away.

Migrating to 2.17.0 solved the error.

@augnustin
Copy link

Fixed it for me too. Cheers

@marcusaaronb
Copy link

Helpful thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants