I am using Vite on Arch Linux
Browsers : Firefox and Chrome
I recently installed "webgazer" for the first time on one of my project!!
After importing the "webgazer" library i got the following error
Even though the node module had all the files
The issue was that i needed to specify the .mjs extension, instead of import params from './params'; i had to import params from './params.mjs';
So i went through all the files and added the .mjs extension.
Which fixed the error
create-react-app would already do the extension resolution for me for me but for some reason Vite didn't
I apologize if something about this was already written in the docs ans i couldn't find it , it would be awesome if you could add something about this in the Readme.md.
I am using Vite on Arch Linux Browsers : Firefox and Chrome
.mjs
extension, instead ofimport params from './params';
i had toimport params from './params.mjs';
.mjs
extension.create-react-app
would already do the extension resolution for me for me but for some reasonVite
didn'tReadme.md
.