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

npm run dev: Exit status 3221225725 #5530

Closed
vonBrax opened this issue Apr 14, 2019 · 5 comments
Closed

npm run dev: Exit status 3221225725 #5530

vonBrax opened this issue Apr 14, 2019 · 5 comments

Comments

@vonBrax
Copy link

vonBrax commented Apr 14, 2019

Version

v2.6.1

Reproduction link

https://github.com/vonBrax/nuxt-esm-bug

Steps to reproduce

OS: MS Windows 10 Pro 10.0.17763 64-bits

From the provided repo:

  1. git clone https://github.com/vonBrax/nuxt-esm-bug
  2. cd nuxt-esm-bug
  3. npm install
  4. npm run dev

From scratch:

  1. npx create-nuxt-app nuxt-esm-bug (just default options)
  2. cd nuxt-esm-bug
  3. npm i stylelint stylelint-webpack-plugin
  4. require stylelint-webpack-plugin inside nuxt.config.js (https://github.com/webpack-contrib/stylelint-webpack-plugin#getting-started):
    -- const StyleLintPlugin = require('stylelint-webpack-plugin') - not even necessary to push it to config.plugins
  5. npm run dev

What is expected ?

normally compile the application and start dev server

What is actually happening?

Process exit with error 3221225725 (stack overflow):

npm ERR! code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! nuxt-esm-bug@1.0.0 dev: nuxt
npm ERR! Exit status 3221225725
npm ERR!
npm ERR! Failed at the nuxt-esm-bug@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Additional comments?

Tracking down the bug locally in the built package inside node_modules the offending line seems to be this one:

  • node_modules/@nuxt/cli/dist/cli-chunk2.js: options = (nuxtConfigFile.endsWith('.ts') ? require(nuxtConfigFile) : esm(module, esmOptions)(nuxtConfigFile)) || {};

And mapping it to the source code it seems to be here: https://github.com/nuxt/nuxt.js/blob/dev/packages/cli/src/utils/config.js#L28

Apparently this is a known issue from the esm package (< v3.20.1) when used in conjuction with some other packages like stylelint or node-sass running on windows machines. The issue is described here: standard-things/esm#745

As stated in standard-things/esm#745 (comment), upgrading esm to 3.20.1 seems to fix the issue.

I tested upgrading the package locally in my machine and indeed the issue is gone.

This bug report is available on Nuxt community (#c9042)
@ghost ghost added the cmty:bug-report label Apr 14, 2019
@aldarund
Copy link

we cant update esm to anything higher than 3.20 because of standard-things/esm#773
So when a new version of esm will be released then we update

@stale
Copy link

stale bot commented May 6, 2019

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

@stale stale bot added the stale label May 6, 2019
@manniL manniL added the pending label May 8, 2019
@stale stale bot removed the stale label May 8, 2019
@manniL
Copy link
Member

manniL commented May 8, 2019

Looks like the update is coming soon ( standard-things/esm@9432fad )

@Atinux Atinux added this to Open in Bugs 🐞 Aug 8, 2019
@Atinux
Copy link
Member

Atinux commented Aug 8, 2019

Can this be closed @manniL ?

@Atinux Atinux moved this from Open to In progress in Bugs 🐞 Aug 8, 2019
@manniL
Copy link
Member

manniL commented Aug 8, 2019

I would say so ☺️

@manniL manniL closed this as completed Aug 8, 2019
Bugs 🐞 automation moved this from In progress to Fixed Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Bugs 🐞
  
Fixed
Development

No branches or pull requests

5 participants