jet-demos icon indicating copy to clipboard operation
jet-demos copied to clipboard

After install through NPM, start fails

Open peruzzijl opened this issue 6 years ago • 6 comments

After downloading and unpacking from master, the NPM fails to start after a successful install through NPM.

`node install

node-pre-gyp WARN Using request for node-pre-gyp https download [fsevents] Success: "/Users/peruzzijl/Downloads/jet-demos-master/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN [email protected] requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/idb-connector): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"aix","arch":"any"} (current: {"os":"darwin","arch":"x64"})

added 991 packages in 48.562s`

`jet-demos-master peruzzijl$ npm start

[email protected] start /Users/peruzzijl/Downloads/jet-demos-master webpack-dev-server --host 0.0.0.0

ℹ 「wds」: Project is running at http://0.0.0.0:8080/ ℹ 「wds」: webpack output is served from /codebase/ ℹ 「wds」: 404s will fallback to index.html ✖ 「wdm」: Hash: 30c88c371d6300732e8c Version: webpack 4.29.5 Time: 9686ms Built at: 02/22/2019 8:06:58 AM Asset Size Chunks Chunk Names app.js 1.64 MiB app [emitted] app Entrypoint app = app.js [0] multi (webpack)-dev-server/client?http://0.0.0.0:8080 ./sources/app.js 40 bytes {app} [built] [./node_modules/loglevel/lib/loglevel.js] 8.43 KiB {app} [built] [./node_modules/querystring-es3/index.js] 126 bytes {app} [built] [./node_modules/strip-ansi/index.js] 161 bytes {app} [built] [./node_modules/url/url.js] 22.6 KiB {app} [built] [./node_modules/webix-jet/dist/es6/jet.js] 67.5 KiB {app} [built] [./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8080] (webpack)-dev-server/client?http://0.0.0.0:8080 8.1 KiB {app} [built] [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.59 KiB {app} [built] [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.05 KiB {app} [built] [./node_modules/webpack/hot sync ^./log$] (webpack)/hot sync nonrecursive ^./log$ 170 bytes {app} [built] [./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 74 bytes {app} [built] [./sources/addview.js] 3.46 KiB {app} [built] [./sources/app.js] 5.16 KiB {app} [built] [./sources/appguard.js] 2.18 KiB {app} [built] [./sources/bundles.js] 322 bytes {app} [built] [failed] [1 error] + 45 hidden modules

ERROR in ./sources/bundles.js 19:16 Module parse failed: Unexpected token (19:16) You may need an appropriate loader to handle this file type. | | AboutView.prototype.config = function config() {

  var widgets = import( /* webpackChunkName: "widgets" */"modules/customWidgetA");

| return widgets.then(function () { | @ ./sources/app.js 29:0-30 32:1627-1634 @ multi (webpack)-dev-server/client?http://0.0.0.0:8080 ./sources/app.js ℹ 「wdm」: Failed to compile.`

Running on: OSX: 10.14.3 NPM: 6.8.0

peruzzijl avatar Feb 22 '19 13:02 peruzzijl

I have a same result

finzaiko avatar Feb 23 '19 02:02 finzaiko

Same error @mkozhukh

shahidcodes avatar Mar 24 '19 18:03 shahidcodes

For me the same

graf0 avatar Apr 02 '19 11:04 graf0

I updated nodejs to stable (10.15.3 LTS) and installed yarn - and it works!

graf0 avatar Apr 02 '19 11:04 graf0

Same here. Runing on Windows 10. Had Node 11.x. Upgraded to 12.2, did not help. Installed yarn, did not help. Downgraded Node to 10.15 LTS, did not help...

dexter69 avatar May 09 '19 14:05 dexter69

Change dependencies to:

"webpack": "~4.34.0",
"webpack-cli": "3.3.4",
"acorn": "^6.1.1",

and run:

rm -rf package-lock.json
rm -rf node_modules
npm i

https://forum.webix.com/discussion/comment/24768#Comment_24768

finzaiko avatar Jun 28 '19 01:06 finzaiko