简体   繁体   English

在本地运行 https://github.com/akella/webgl-mouseover-effects 代码

[英]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

  1. I have downloaded and extracted the files but when I run/open eg step3.html, I am getting errors.我已经下载并提取了文件,但是当我运行/打开例如 step3.html 时,我遇到了错误。

  2. 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)?

I just used:我刚用过:

npm install
npm run parcel -- step3.html

and it worked on my setup (Win 10 + NPM 6.14.14 + Node v14.17.5)它适用于我的设置(Win 10 + NPM 6.14.14 + Node v14.17.5)

Can you try again with this setup ?你能用这个设置再试一次吗?

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用库https://github.com/hiddentao/linear-algebra运行简单的示例 - Unable to run simple example using library https://github.com/hiddentao/linear-algebra 无法在meanstack MEANIO上运行localhost:3000,https://github.com/linnovate/mean - cannot run localhost:3000 on meanstack MEANIO, https://github.com/linnovate/mean 来自https://github.com/RubaXa/Sortable的功能要求 - Function required from https://github.com/RubaXa/Sortable 如何为Tween.js分配额外的属性(https://github.com/sole/tween.js/) - How to assign extra attributes to Tween.js ( https://github.com/sole/tween.js/ ) 如何在浏览器中使用“https://github.com/ovvn/dom-to-pdf” - How can I use `https://github.com/ovvn/dom-to-pdf` in a Browser 在异步队列内的函数内进行异步Twitter调用-https://github.com/DeviaVir/zenbot - Async twitter call inside a function that is inside a async queue - https://github.com/DeviaVir/zenbot 如何处理“已弃用,请使用https://github.com/pillarjs/path-to-regexp”消息 - how to deal with “DEPRECATED use https://github.com/pillarjs/path-to-regexp” message Rails 7 无法导入纱线 package (https://github.com/keisto/vanilla-rangeslider) - Rails 7 failing to import yarn package (https://github.com/keisto/vanilla-rangeslider) 无法解析主机github.com - Could Not Resolve Host github.com 像Github.com这样的时间表 - Timeline Charts like Github.com
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM