Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

problem with build #796

Open
13MrBlackCat13 opened this issue Oct 13, 2021 · 2 comments
Open

problem with build #796

13MrBlackCat13 opened this issue Oct 13, 2021 · 2 comments

Comments

@13MrBlackCat13
Copy link

npm run build

> [email protected] build /home/ubuntu/status
> statusfy build

ℹ Reading configuration from config.js                                                                          14:35:41
ℹ Production build                                                                                              14:35:42
✔ Builder initialized                                                                                           14:35:42
✔ Nuxt files generated                                                                                          14:35:42

● Client █████████████████████████ building (10%) 1/2 modules 1 active
 babel-loader › .statusfy/client.js

◯ Server
  


● Client █████████████████████████ building (10%) 2/2 modules 0 active
 

◯ Server
  


● Client █████████████████████████ finish module graph (70%)  
 

◯ Server
  


● Client █████████████████████████ after chunk asset optimization (93%)  
 

◯ Server
  


✖ Client
  Compiled with some errors in 1.62s

◯ Server
  

Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-class-properties.
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
	["@babel/plugin-proposal-private-property-in-object", { "loose": true }]
to the "plugins" section of your Babel config.
Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-methods since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-property-in-object.
The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
	["@babel/plugin-proposal-private-methods", { "loose": true }]
to the "plugins" section of your Babel config.

Hash: 291d4c9242a708f5185d
Version: webpack 4.46.0
Time: 1626ms
Built at: 10/13/2021 2:35:45 PM
                  Asset      Size  Chunks               Chunk Names
6951884d22f072bb9ff0.js  1.49 KiB       1  [immutable]  runtime
742fdadf8a7533face64.js  1.69 KiB       0  [immutable]  app
Entrypoint app = 6951884d22f072bb9ff0.js 742fdadf8a7533face64.js

ERROR in ./.statusfy/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /home/ubuntu/status/.statusfy/client.js: Cannot find module '@babel/preset-env/lib/utils'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at PluginPass.Program (/home/ubuntu/status/node_modules/@nuxt/babel-preset-app/src/polyfills-plugin.js:15:34)
    at newFn (/home/ubuntu/status/node_modules/@babel/traverse/lib/visitors.js:177:21)
    at NodePath._call (/home/ubuntu/status/node_modules/@babel/traverse/lib/path/context.js:53:20)
    at NodePath.call (/home/ubuntu/status/node_modules/@babel/traverse/lib/path/context.js:40:17)
    at NodePath.visit (/home/ubuntu/status/node_modules/@babel/traverse/lib/path/context.js:90:31)
    at TraversalContext.visitQueue (/home/ubuntu/status/node_modules/@babel/traverse/lib/context.js:103:16)
    at TraversalContext.visitSingle (/home/ubuntu/status/node_modules/@babel/traverse/lib/context.js:77:19)
    at TraversalContext.visit (/home/ubuntu/status/node_modules/@babel/traverse/lib/context.js:131:19)
    at Function.traverse.node (/home/ubuntu/status/node_modules/@babel/traverse/lib/index.js:82:17)
    at traverse (/home/ubuntu/status/node_modules/@babel/traverse/lib/index.js:62:12)
    at transformFile (/home/ubuntu/status/node_modules/@babel/core/lib/transformation/index.js:105:29)
    at transformFile.next (<anonymous>)
 @ multi ./.statusfy/client.js app[0]

 FATAL  Nuxt build error                                                                                        14:35:45

  at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:5326:21)
  at process._tickCallback (internal/process/next_tick.js:68:7)

  • OS: ubuntu
  • Node.js version: 10.19.0
  • Browser version: idk
  • global install
  • npm
@edmooneysh
Copy link

Same issue with build - although running on Ubuntu WSL.

`
Asset Size Chunks Chunk Names
6951884d22f072bb9ff0.js 1.49 KiB 1 [immutable] runtime
ffebb92d44cab466ca6b.js 1.71 KiB 0 [immutable] app
Entrypoint app = 6951884d22f072bb9ff0.js ffebb92d44cab466ca6b.js

ERROR in ./.statusfy/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /home/ed/dev/statusfy/.statusfy/client.js: Cannot find module '@babel/preset-env/lib/utils'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at PluginPass.Program (/home/ed/dev/statusfy/node_modules/@nuxt/babel-preset-app/src/polyfills-plugin.js:15:34)
at newFn (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/visitors.js:177:21)
at NodePath._call (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/path/context.js:53:20)
at NodePath.call (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/path/context.js:100:31)
at TraversalContext.visitQueue (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/context.js:103:16)
at TraversalContext.visitSingle (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/context.js:77:19)
at TraversalContext.visit (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/context.js:131:19)
at Function.traverse.node (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/index.js:82:17)
at traverse (/home/ed/dev/statusfy/node_modules/@babel/traverse/lib/index.js:62:12)
at transformFile (/home/ed/dev/statusfy/node_modules/@babel/core/lib/transformation/index.js:105:29)
at transformFile.next ()
@ multi ./.statusfy/client.js app[0]

FATAL Nuxt build error 16:34:30

at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:5326:21)
at process._tickCallback (internal/process/next_tick.js:68:7)

`

@OmgImAlexis
Copy link

You'll need to make sure to use node v16 and not v17.

You'll also want to run npm i -D @babel/[email protected] to fix @babel/preset-env/lib/utils being missing.

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

No branches or pull requests

3 participants