-
I am trying to load the Now, as specified by
You cannot load a library with a module ID that ends with |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Bumping this issue. |
Beta Was this translation helpful? Give feedback.
-
@etimberg ping |
Beta Was this translation helpful? Give feedback.
-
@Koshux the industry seems to be moving away from RequireJS towards newer and better technologies like Webpack. Given that there are other ways to make this work, this particular issue isn't really at the top of the priority scale--this plugin has much bigger issues with functionality, as you can see from the issues list. If you need this fixed now, please consider submitting a PR. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@Koshux I'm curious to know if this issue also happens with the chartjs-plugin-deferred plugin? |
Beta Was this translation helpful? Give feedback.
-
@Koshux can you try with these files: chartjs-plugin-zoom.zip |
Beta Was this translation helpful? Give feedback.
-
@simonbrunel I have tried using both files provided in the ZIP file (chartjs-plugin-zoom.js & chartjs-plugin-zoom.min.js) and still encounter the same issue. The working solution is to change the expected module ID from 'require('chart.js')' to 'require('chartjs')'. |
Beta Was this translation helpful? Give feedback.
-
Can you share test cases that fail to load |
Beta Was this translation helpful? Give feedback.
-
Also, if |
Beta Was this translation helpful? Give feedback.
-
Bumbing this up since this is a breaking issue with requirejs. |
Beta Was this translation helpful? Give feedback.
-
My require.config.js looks like this:
The trick is to map the module-name "chart.js" including the .js-suffix to the module-name "chartjs". This configuration allows RequireJS to load chart.js-plugins without any modification. |
Beta Was this translation helpful? Give feedback.
-
I fought with this for hours when trying to use the dragdata extension. I ended up doing the following at the top of my js class to ensure chartjs (2.9.3) is loaded before the dragdata (1.0.2) extension.
|
Beta Was this translation helpful? Give feedback.
My require.config.js looks like this:
The trick is to map the module-name "chart.js" including the .js-suffix to the module-name "chartjs". This configuration allows RequireJS to load chart.js-plugins without any modification.