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
Packaging issues after node-jquery update #54
Comments
I just played around a bit more and got the following results:
|
hmm.. i think the problem is that webpack do not respect the jam section in the package.json "jam": {
"main": "dist/jquery.js",
"include": ["dist/jquery.js"]
} So it tries to load I'll add support for jam.main as jam writes a config for require.js which includes the main field. So require.js would work. |
So I added Your example will build now:
|
Hi sokra, I just tried it in one of my projects and can confirm this works flawlessly. Thank you very much! Best regards, |
😄 |
Hi sokra,
I just got involved in another JS project and decided to stick with the tools I am familiar with, i.e. webpack, among others. Unfortunately when I created a new project I ran into some strange errors I could not explain. I ended up cleaning my old project of all generated content (npm & jam modules) and updated the dependencies. Now with
node-jquery 1.8.3
my old project won't build at all. When I try to webpack the following minimal exampleI get the following warnings:
plus a ton of errors like:
For this example I
npm install
ed the latest versions ofjquery
,webpack
,enhanced-require
(node_modules) andjam install
edjquery
(web_modules). Do you happen to have an idea of what went wrong here?The text was updated successfully, but these errors were encountered: