infernojs / create-inferno-app

Create Inferno apps with no build configuration.
MIT License
351 stars 34 forks source link

npm start error on eject #94

Closed EM-LilianaIturribarria closed 9 months ago

EM-LilianaIturribarria commented 9 months ago

Hi, i followed these instructions:

npx create-inferno-app inferno-app
cd inferno-app
npm start

npm start runs fine,

then when i wanted to eject it doesn't work

then i wanted to eject
npm run eject
npm start

> inferno-app@0.1.0 start
> node scripts/start.js

node:internal/modules/esm/resolve:263
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/liturribarria/Sites/evolve/temp/inferno-app/scripts/utils/process-env-develop.js' imported from /Users/liturribarria/Sites/evolve/temp/inferno-app/scripts/start.js
    at finalizeResolution (node:internal/modules/esm/resolve:263:11)
    at moduleResolve (node:internal/modules/esm/resolve:908:10)
    at defaultResolve (node:internal/modules/esm/resolve:1131:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/liturribarria/Sites/evolve/temp/inferno-app/scripts/utils/process-env-develop.js'
}

Node.js v21.6.1
Havunen commented 9 months ago

Thanks for reporting this issue, I will look into it

Havunen commented 9 months ago

This is now fixed in the latest version.

EM-LilianaIturribarria commented 9 months ago

thank you @Havunen !!!

and just a question for you... any thoughts on updating so we don't have any warnings?

> npm install
npm WARN deprecated rollup-plugin-terser@7.0.2: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser
npm WARN deprecated abab@2.0.6: Use your platform's native atob() and btoa() methods instead
npm WARN deprecated domexception@4.0.0: Use your platform's native DOMException instead
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead

added 1448 packages, and audited 1449 packages in 3s

312 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
Havunen commented 9 months ago

Yeah all the npm packages were updated to latest avalaible versions but I might have missed some packages if they have changed their names. Can you open a new issue about that please

EM-LilianaIturribarria commented 9 months ago

sure, thank you so much @Havunen