au install i18next has wrong path in aurelia.json
See original GitHub issueI’m submitting a bug request
Library Version: 0.26.1
Operating System: Windows 10
Node Version: 6.10.0
NPM Version: 3.10.8
Browser: all
Language: all
Current behavior: Similar to @AshleyGrant issue. Was following the aurelia-i18n tutorial on the docs hub but using v0.26.1 of the CLI.
When using au install i18next
the output was:
{
"name": "i18next",
"main": "./index.js",
"path": "../node_modules/i18next",
"resources": []
}
however when performing a build I was getting the following error:
File not found or not accessible: D:/source/code/app/i18next/dist/commonjs/index.js. Requested by D:/source/code/app/src/main.js
File not found or not accessible: D:/source/code/app/i18next/dist/commonjs/index.js. Requested by D:/source/code/app/src/main.js
To fix the issue I had to change the path to:
{
"name": "i18next",
"path": "../node_modules/i18next/dist/umd",
"main": "i18next",
"resources": []
}
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
au install should also set up a package's dependencies in the ...
When installing an npm package that has dependencies, those dependencies are not properly set up by the aurelia cli in aurelia.json .
Read more >Dynamic load not allowed installing i18n - Help Requests
Today I tried to install i18n-translation in my aurelia-cli project. ... Error: Dynamic load not allowed: locales/de/translation.json .
Read more >error building aurelia application with i18n - Stack Overflow
I'm converting our aurelia project to use aurelia-cli . I added aurelia-18n, i18n and i18next-xhr-backend to aurelia-json but when I ran 'au ......
Read more >aurelia/Discuss - Gitter
if I add "aurelia-i18n" to aurelia.json, I get error: "Error: ENOENT: no such file ... I have already changed path to /scripts/vendor-bundle however...
Read more >Translating Aurelia applications with Aurelia i18n - Lokalise Blog
Aurelia i18n. If you have successfully installed those packages, your package.json file should have the following dependencies:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/amodrojs/amodro-trace/issues/7
Fixed with new auto-tracer