Having to include require #89
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
When trying to use switches I have to include the Require library in my HTML.
I then get constant file issues in node_modules.
Uncaught Error: Module name "events/on.js" has not been loaded yet for context: _. Use require([])Just trying to add animation to the example in bower
How are you consuming the module?
im loading the pjax.js withing a common.js file:
then calling:
if i add the brackets into the require switches.js call it then asks for it be done to every .js file in the lib folder
You are mixing amd with commonjs. This cannot work this way. Not sure how to handle this with amd.
Thats fair enough. What is the recommended approach to loading? Do you just use commonjs on your website? I've tried the standalone js with nothing else and it still asks to me use require([]) on the switches.js require call.
Even when trying to use something like the below in the example doesn't seem to work:
Just never loads the switches.js correctly
You should use browserify or webpack.
Note: use 3 backticks for code blocks