Npm start dont show anything
Hi! I am trying to make npm start in an old project (it was not touched 4 months ago) and it does not start. I make npm start and it does not start the app. I think it may be something simple, but I can not think what it is.
@GBurgardt There aren't any logs showing or errors?
well same here my porblem is electron start before webpack is done i get ...."index.html" not found but only first time! after reload everything works fine
@mo2menelzeiny The log does not throw any errors, the last lines show this.
[437] ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./src/styles.scss 2.19 kB {2} [built]
[439] ./src/assets/fonts/YulindaScriptDemo.otf 88 bytes {2} [built]
+ 427 hidden modules
Child html-webpack-plugin for "index.html":
1 asset
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 1.36 kB {0} [built]
And then nothing happens, the app does not open as it should.
If I run it in the browser, then it throws the following error:
Uncaught ReferenceError: require is not defined
at Object.54 (external "require('url')":1)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.<anonymous> (client:2)
at Object.<anonymous> (client?21cd:204)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.546 (polyfills.bundle.js:5144)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at webpackJsonpCallback (bootstrap d1194c543918b193546a:25)
at polyfills.bundle.js:1
And
Uncaught ReferenceError: require is not defined
at Object.231 (external "require('electron')":1)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.230 (home.component.ts:2)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.460 (app.module.ts:74)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.457 (main.ts:11)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
at Object.447 (electron.service.ts:9)
at __webpack_require__ (bootstrap d1194c543918b193546a:54)
And only show "Cargando.."
@GBurgardt can you include your package.json file as well