[英]Run https://github.com/akella/webgl-mouseover-effects code locally
I want to implement image hover effect like on this website https://miew.pt/ , and the closest example I got or came across can be found here https://github.com/akella/webgl-mouseover-effects我想在这个网站上实现图像悬停效果https://miew.pt/ ,我得到或遇到的最接近的例子可以在这里找到https://github.com/akella/webgl-mouseover-effects
I have downloaded and extracted the files but when I run/open eg step3.html, I am getting errors.我已经下载并提取了文件,但是当我运行/打开例如 step3.html 时,我遇到了错误。
I have run yarn add but still getting same error as in point 1.我已经运行了 yarn add 但仍然遇到与第 1 点相同的错误。
The error in point 1 & 2 is "Uncaught SyntaxError: Cannot use import statement outside a module"第 1 点和第 2 点的错误是“Uncaught SyntaxError: Cannot use import statement outside a module”
What's the correct way to set up the code locally(Win 10)?在本地设置代码的正确方法是什么(Win 10)?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.