Import third-party js

i want to use echarts map plugin, but when i import china.js ,errors occur .image

the js i am used in the simple html is ok

1 Like

Sounds like you need to copy the 3rd party js from node_modules into the plugin. You can do that automatically in a Grunt script like this:

i want import this js

,but has this problemimage

Do you have a dist subfolder? If you do, does the path dist/js/echarts-liquidfill.min.js exist?

@zhongqi also you can use webpack build system to include libs to your bundle:

ok。let me have a try,thanks