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

Import fails for npm package - file not found #1387

Closed
johnsoftek opened this issue Dec 30, 2015 · 2 comments
Closed

Import fails for npm package - file not found #1387

johnsoftek opened this issue Dec 30, 2015 · 2 comments

Comments

@johnsoftek
Copy link

This issue was originally raised against the jade plugin: johnsoftek/plugin-jade#11

Recently, after installing plugin-jade with no error messages, an attempt to load a .jade file results in a 404 error, file not found, for url http://localhost:8080/jspm_packages/npm/jade@1.11.0.js.

In the past, jspm install jade would create a directory, jade@1.11.0, and a file, jade@1.11.0.js, in directory jspm_packages/npm. The file is no longer created during installation.

The error may be related to commit 7089f78 for issue #1291.
When these two lines are removed from lib/package.js, the former behaviour is restored:

# lines 790, 791
if (exists)
   return exists;

The error seems to occur when the main entry in package.json is a directory, not a file.

@guybedford
Copy link
Member

Thanks, fixed in df48f49.

@guybedford
Copy link
Member

Released in 0.16.20.

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