Open jack45j opened 5 years ago
To be clear, you didn't do a custom build of Blotter or anything, you just pulled it directly from the source here?
Either way, is there any way you can provide a preproduction of the error inside of a codepen or a jsfiddle?
Blotter should already be including the modules it relies on, as outlined here (but I assume you've already seen that).
Yes. I didn't do any custom build of Blotter or anything, I just pulled it directly from the sources. Here is my repo and this is my personal resume website.
I'm an iOS developer and this is my first time working on vue.js. Please forgive me about the disastrous code style and path structure.
Get down to business, I placed the blotter files in /src/components/Blotter
and include it in /src/components/LandginPage/index.vue
You can use npm run serve
to compile the website and then u can see the error in console.
@bradley I am getting the same error. Installed script via npm.
Finally got some solutions. I put Blotter files into /static folders and input it as normal and then anything just work fine. I think there are some unexpected incorrect references occurred if we import them by relative path in Vue.js.
Good to hear it. But the source code has to be updated with a universal module definition in mind.
Did anyone ever find a solution to this that didn't involve putting the script in a static folder? I'm getting this when I run tests
Hi everyone! I am in progress with a Vue.js project and facing some issue when I tried to use blotter.js for my resume page. Here is my script block below. I tried to import blotter.min.js and channelSplitMaterial.min.js into my file. According to the document says, there is no need to import three.js or install modules but I got a
TypeError: Cannot read property 'ClampToEdgeWrapping' of undefined
Error. After some research I thought the ClampToEdgeWrapping seems to be a module of three.js. Am I misunderstanding something? Really sorry that I know that maybe this is not a blotter.js issue but a Vue.js issue but there are nothing can reference about blotter with vuejs even within Vue's Chinese forum.