-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failure upon require('./file.js') or require('module/') #579
Comments
Hi, can you provide the error messages for both statements? Thanks |
The error message is the regular "File not found" error. |
The first issue, where the CLI does not handle imports with the About the second issue, |
About the second issue, some dependencies PouchDB exihibit such quirks. |
That changes things. What exact package did you have issues with? I'd like to do my testing on that. Is it pouchdb or a subdependency? |
You will get many errors if you try to add the following PouchDB libraries: [email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] To start with, some libs (e.g. levelup, readable-stream) fail to declare all their dependencies according to the Aurelia-CLI tracer (e.g. util). So you have to manually update their package.json (and aurelia.json) with the missing dependencies. And among those libs, readable-stream is by far the worst offender and the reason I had to give up (for now) trying to include levelup in my package. One of the problems with readable-stream, and probably the easiest to resolve, is the call to |
@gravsten Thanks for the instructions. The pouchdb thing, having to declare that many package dependencies, is not good, at all. I'm going to use pouchdb as the test case for #530.
I will look into this, and also #581 |
I'm submitting a bug report
0.27.0
Please tell us about your environment:
Operating System:
Windows 8.1
Node Version:
6.10.0
NPM Version:
3.10.10
Current behavior:
Tracing fails to find appropriate file when using require('./file.js') or require('module/')
Expected/desired behavior:
aurelia-cli should add '.js' only when omitted in the library code, and remove any trailing '/'.
The purpose of using node/npm is to reuse and automatically update libraries in one's project.
With the aforementioned bug, one needs to edit all offending libraries for 'au run' to work flawlessly (while other bundlers show no such problem).
The text was updated successfully, but these errors were encountered: