I had a problem using the new version of aurelai:
au run --watch
I get htis error:
[Error: ENOENT: there is no such file or directory, open "C: \ src \ ai-dialog.js"]
Any idea?
The reason this happens is because the package is a CommonJS package.
See: http://aurelia.io/hub.html#/doc/article/aurelia/framework/latest/the-aurelia-cli/10
Edit your aurelia_project/aurelia.jsonfile from
aurelia_project/aurelia.json
"dependencies": [ "aurelia-dialog" ]
to
"dependencies": [ { "name": "aurelia-dialog", "path": "../node_modules/aurelia-dialog/dist/amd", "main": "aurelia-dialog" } ]
.
. aurelia, npm
npm install aurelia-dialog --save
aurelia.json,
aurelia.json
{ "name": "aurelia-dialog", "path": "../node_modules/aurelia-dialog/dist/amd", "main": "aurelia-dialog" }
Source: https://habr.com/ru/post/1650137/More articles:Показать приложение как "Импортировать с помощью" в UIActivityViewController - iosAngular2 HTTP using observable signatures displaying undefined data - httpCustom Markers for Matlab Chart - matlabHow to use NLog LogMessageGenerator delegate? - c #Cake: Build Script Progress - c #How can I use an empty href attribute without redirection? - javascriptПолучить пространство для хранения, используемое в папке в хранилище Firebase - firebaseRead multiple files in a Hive table by date - hiveКак написать ниже многопоточную программу наилучшим образом - javaInfiniteLoader and reaction-redux - react-reduxAll Articles