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 getting stuck while Client build #9230

Closed
luckymichaln opened this issue May 2, 2021 · 0 comments
Closed

Nuxt getting stuck while Client build #9230

luckymichaln opened this issue May 2, 2021 · 0 comments

Comments

@luckymichaln
Copy link

Versions

  • nuxt: 2.14.2
  • node: 15.0.1

Reproduction

Just install dependencies and run yarn dev to build the project.

Steps to reproduce

See above

What is Expected?

Both Client and Server bundle being build properly, app runs without any dependency errors.

What is actually happening?

Locally Client bundle is getting stuck at 68-69% while building . After a while it passes to the end, but there's a lot of warnings from ./node_modules and 154 dependencies are missing.

While build on Netlify, logs errors starts from

[fatal] Nuxt build error
6:51:52 PM:   ERROR in ./node_modules/sirv/build.mjs 42:18-22
6:51:52 PM:   Can't import the named export 'join' from non EcmaScript module (only default export is available)
@ (webpack)-bundle-analyzer/lib/viewer.js

Don't exactly know when it started to happen. I'm almost certain that I didn't added any new dependency whatsoever. I've already searched for some solution, but nothing really helped with it. I'm completely stuck with this, can anyone help me? :(

Here's my package.json file:

{
  "name": "olszowski-nuxt-prismic",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start",
    "generate": "nuxt generate"
  },
  "dependencies": {
    "@babel/preset-env": "~7.12.0",
    "@nuxtjs/axios": "^5.13.1",
    "@nuxtjs/prismic": "^1.2.6",
    "@prismicio/client": "^4.0.0",
    "core-js": "^3.8.3",
    "node-sass": "^5.0.0",
    "nuxt": "^2.14.2",
    "nuxt-lazy-load": "^1.2.6",
    "prismic-javascript": "^3.0.2",
    "sass-loader": "^10.1.1",
    "vuex": "^3.6.2"
  },
  "devDependencies": {},
  "resolutions": {
    "@babel/preset-env": "7.12.17"
  }
}

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

2 participants