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

Unable to build Nuxt 2 projects #329

Closed
Henk0 opened this issue Dec 26, 2024 · 2 comments
Closed

Unable to build Nuxt 2 projects #329

Henk0 opened this issue Dec 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Henk0
Copy link

Henk0 commented Dec 26, 2024

Environment

Nuxt 2 project Node 20 and 18

Reproduction

Try to build new nuxt 2 project

Describe the bug

I believe you messed up require cjs path
Снимок экрана 2024-12-26 в 18 22 53

Additional context

Снимок экрана 2024-12-26 в 18 28 03

Logs

No response

@Henk0 Henk0 added the bug Something isn't working label Dec 26, 2024
@Ashiksmart
Copy link

I am also facing the same error while trying to run the build or start the Nuxt 2 projects. It throws an error like this:

.../node_modules/@nuxt/config/dist/config.js:514
consola.warn("mode option is deprecated. You can safely remove it from nuxt.config");
^

TypeError: consola.warn is not a function
at Object.getNuxtConfig (/home/mohammed/Ashik/Repositories/comed-ee-standportal/node_modules/@nuxt/config/dist/config.js:514:15)
at new Nuxt (/home/mohammed/Ashik/Repositories/comed-ee-standportal/node_modules/@nuxt/core/dist/core.js:287:27)
at start (/home/mohammed/Ashik/Repositories/comed-ee-standportal/server/index.js:14:16)
at Object. (/home/mohammed/Ashik/Repositories/comed-ee-standportal/server/index.js:43:1)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49

Node.js v20.12.2
[nodemon] app crashed - waiting for file changes before starting...

@pi0
Copy link
Member

pi0 commented Dec 26, 2024

Change temporarily reverted in v3.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants