Open DCKT opened 8 years ago
My problem that was throwing "Uncaught Error: Cannot find module..." error was that I didn't noticed that I was including script common.js in my HTML after my factor bundeled files like index.js. So when I changed the order like so...
Githubissues.
Hi,
I've got a strange behavior with my scripts. I have 2 JS files : home.js and product.js for the concerned page. Both require the common.js file, it works fine on the product page but on the homepage I have this error : "Uncaught Error: Cannot find module '51'"
More about this error :
But, the JS still works. When I look further on the console, it's apparently the first module I have imported in the home.js script (jquery).
Here is my compilation script:
I work on Windows 7 with Node.js v4.2.