You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
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:
Verify that you can still reproduce the issue in the latest version of nuxt-edge
Comment the steps to reproduce it
Issues that are labeled as pending will not be automatically marked as stale.
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:
git clone https://github.com/vonBrax/nuxt-esm-bug
cd nuxt-esm-bug
npm install
npm run dev
From scratch:
npx create-nuxt-app nuxt-esm-bug
(just default options)cd nuxt-esm-bug
npm i stylelint stylelint-webpack-plugin
--
const StyleLintPlugin = require('stylelint-webpack-plugin')
- not even necessary to push it to config.pluginsnpm 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:
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.
The text was updated successfully, but these errors were encountered: