Ticket #14548 (closed bug: fixed)
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.
- Owner set to timmywil
- Priority changed from undecided to blocker
- Status changed from new to assigned
- Component changed from unfiled to core
- Milestone changed from None to 1.11/2.1