We are having the first experiences with SCIchart. Could someone help with this problem we are experiencing?
[ encore ] ERROR Failed to compile with 1 errors14:42:33 [ encore ]
Module build failed: Module not found: [ encore ]
“./node_modules/scichart/_wasm/scichart2d.wasm” contains a reference
to the file “a”. This file can not be found, please check it for typos
or update it if the file got moved. [ encore ] ERROR in
./resources/js/Pages/Home.vue?vue&type=template&id=6a63e488&scoped=true&ts=true
(./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=unplugin-vue-components!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/Pages/Home.vue?vue&type=template&id=6a63e488&scoped=true&ts=true)
10:27 Module parse failed: Unexpected token (10:27) File was processed
with these loaders: *
./node_modules/unplugin/dist/webpack/loaders/transform.js *
./node_modules/unplugin/dist/webpack/loaders/transform.js *
./node_modules/vue-loader/dist/templateLoader.js *
./node_modules/vue-loader/dist/index.js You may need an additional
loader to handle the result of these loaders. | }, null, -1 /* HOISTED
*/)) |export function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) { | return (_openBlock(),
_createElementBlock(“div”, _hoisted_1, [ | _createElementVNode(“h1”, null, _toDisplayString(_ctx.msg), 1 /* TEXT */),ERROR in ./node_modules/scichart/_wasm/scichart2d.wasm Module not
found: Error: Can’t resolve ‘a’ in
‘C:\Users\clo\fr\Projeto\chart\App\node_modules\scichart_wasm’ERROR in ./node_modules/scichart/_wasm/scichart3d.wasm Module not
found: Error: Can’t resolve ‘a’ in
‘C:\Users\clo\fr\Projeto\chart\App\node_modules\scichart_wasm’webpack compiled with 3 errors
- Marcelo Wanderley asked 2 years ago
-
https://github.com/marcelodelta/AdonisJs-Inertia-VueJs This is my project. I tried using this vue demo you shared, it still didn’t work. Would you help me?
-
Hi Marcelo. Thanks! We’re in UTC timezone, just started work ;) We will look at it today
-
Hi Marcelo, some progress, adonis-js is not serving the wasm correctly, it thinks it’s JS. We’re working on a solution for you.
-
Thank you =)
-
Hi Marcelo, did you solve this with Jim’s answer?
- 2 more comments
- You must login to post comments
Hello Marcelo,
We tried running the example that you shared.
I’ve discovered that couple of the errors are caused by the WebPack trying to parse the WebAssembly modules (.wasm) since the extension is included in the ‘webpackConfig.resolve.extensions’. (‘.wasm’ is the first element of the list in this case)
So, I was able to fix these two issues by modifying this list with a small workaround:
// webpack.config.js:214
// remove '.wasm' from the extensions list to prevent wasm files from being parsed by webpack
config.resolve.extensions.shift();
However, there is another compilation issue that is not related to SciChart and occurs even if the lib is excluded from the project.
I hope you will find this helpful.
Also, if you will face more issues with it I would suggest checking our documentation related to loading the library dependencies
and our browser bundle tutorial (loading scichart.js without npm)
They describe how to load the dependencies from CDN. This may be help debugging the issues related to modules loading.
- Jim Risen answered 2 years ago
- last edited 10 months ago
- You must login to post comments
Please login first to submit.