Skip to content
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

Failed import in Node - package.json "main" field not aligned with source #1

Closed
arimus opened this issue Jul 29, 2016 · 2 comments
Closed

Comments

@arimus
Copy link

arimus commented Jul 29, 2016

Module resolution is failing in a Node project I'm trying to use this in, because the package (as installed by NPM) contains "dist/depres.js", but the "main" is set to "src/depres.js" instead.

Modifying this fixes the the problem and the following works:

var depres = require('depres');

Note: I am transpiling from TypeScript, but I'm pretty sure the mismatch above isn't correct for the distributed package in any case.

@creynders
Copy link
Owner

Oh, wow, I'm really sorry ... somehow this entirely escaped my attention. I'll update the package.json and cut a new release.

@creynders
Copy link
Owner

In case you still need it: I released it as v0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants