wjet error

HI,
On macOS el capitan
cmd history :
$mkdir myApp
$cd MyApp
$pwd
$wjet init
$npm install
$wjet add feature (Authentication)
$npm run start

sample@1.0.0 start /Users/me/project/myApp
webpack-dev-server --open

Project is running at http://localhost:8080/
webpack output is served from /codebase/
webpack: wait until bundle finished: /codebase/app.css
webpack: wait until bundle finished: /codebase/app.js
Hash: 68c8da018b5927582c15
Version: webpack 3.12.0
Time: 12748ms
Asset Size Chunks Chunk Names
app.js 1.56 MB 0 [emitted] [big] main
./app.css 1.99 kB 0 [emitted] main
[0] ./node_modules/webix-jet/dist/index.js 782 bytes {0} [built]
[13] multi (webpack)-dev-server/client?http://localhost:8080 ./sources/app.js 40 bytes {0} [built]
[14] (webpack)-dev-server/client?http://localhost:8080 7.93 kB {0} [built]
[15] ./node_modules/url/url.js 23.1 kB {0} [built]
[22] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
[24] ./node_modules/loglevel/lib/loglevel.js 8.64 kB {0} [built]
[25] (webpack)-dev-server/client/socket.js 1.08 kB {0} [built]
[27] (webpack)-dev-server/client/overlay.js 3.67 kB {0} [built]
[32] (webpack)/hot nonrecursive ^.\/log$ 170 bytes {0} [built]
[34] (webpack)/hot/emitter.js 74 bytes {0} [built]
[36] ./sources/app.js 1.93 kB {0} [built]
[37] ./sources/models/session.js 1.06 kB {0} [built]
[55] ./node_modules/webix-jet/dist/plugins/User.js 2.06 kB {0} [built]
[56] ./sources/styles/app.css 41 bytes {0} [built]
[57] ./node_modules/css-loader/lib/css-base.js 2.26 kB [built]
+ 43 hidden modules

ERROR in ./node_modules/webix-jet/dist/plugins/Locale.js
Module not found: Error: Can't resolve 'jet-locales' in '/Users/me/project/myApp/node_modules/webix-jet/dist/plugins'
@ ./node_modules/webix-jet/dist/plugins/Locale.js 14:23-53
@ ./node_modules/webix-jet/dist/index.js
@ ./sources/app.js
@ multi (webpack)-dev-server/client?http://localhost:8080 ./sources/app.js
Child extract-text-webpack-plugin node_modules/extract-text-webpack-plugin/dist node_modules/css-loader/index.js!sources/styles/app.css:
[0] ./node_modules/css-loader!./sources/styles/app.css 2.1 kB {0} [built]
[1] ./node_modules/css-loader/lib/css-base.js 2.26 kB {0} [built]
webpack: Failed to compile.

$npm --version
6.3.0
$wjet --version
1.0.0

A+JYT

Comments

  • try to add alias to "jet-locales"

            resolve: {
                alias: {
                    "jet-views": path.join(scriptsPath, "views"),
                    "jet-locales": path.join(scriptsPath, "locales")
                }
            },
    
  • edited August 10

    Or, you can add a locales folder into the sources of the generated project, like here: https://github.com/webix-hub/jet-start/tree/master/sources

    The locales are not included by default, but webpack.config requires them. We will update the tool to sync file structure and config.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion