npm jQuery does not have a main module
|Reported by:||domenic@…||Owned by:||timmywil|
Because jquery's package.json does not have a "main" field, it's not possible to require jQuery.
Steps to reproduce:
npm install firstname.lastname@example.org echo "var $ = require('jquery');" > test.js node test.js
Throws error: cannot find module 'jquery'.
I'd suggest exposing dist/jquery.js as the main module.
Change History (3)
comment:1 Changed 2 years ago by timmywil
- Component changed from unfiled to core
- Milestone changed from None to 1.11/2.1
- Owner set to timmywil
- Priority changed from undecided to blocker
- Status changed from new to assigned