When using Vue with a router, I would like to be on a specific page instead of the index. It works correctly except that the console shows an error : Cannot read properties of null (reading 'addEventListener') (in any page).
Unfortunately I don’t have any stacktrace of this error (the sourcemaps are missing), and the weird thing is that it occurs even while omitting to load the needle engine’s sources (@needle-tools/engine and generated/gen.js).
itself is just a regular web component that then does some extra work to set up a Canvas to render into etc., so would be interesting what actually fails there
Well the sources are local, but I got plenty of messages in the console saying that the source maps are missing, I don’t know why. Thus the stacktrace only points to “index.html” with a random line.
Unfortunately I can’t break on it as I have no information about where the error happens.
I’ve just been testing on a new project with the default settings/vite (sourcemaps are working with this project). But I still have no other info than this:
Well, actually you just have to make a new blank web project via Needle Engine “create project” and then comment the lines on the index.html and you’ll get the error.