簡體   English   中英

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

[英]Run https://github.com/akella/webgl-mouseover-effects code locally

我想在這個網站上實現圖像懸停效果https://miew.pt/ ,我得到或遇到的最接近的例子可以在這里找到https://github.com/akella/webgl-mouseover-effects

  1. 我已經下載並提取了文件,但是當我運行/打開例如 step3.html 時,我遇到了錯誤。

  2. 我已經運行了 yarn add 但仍然遇到與第 1 點相同的錯誤。

第 1 點和第 2 點的錯誤是“Uncaught SyntaxError: Cannot use import statement outside a module”

在本地設置代碼的正確方法是什么(Win 10)?

我剛用過:

npm install
npm run parcel -- step3.html

它適用於我的設置(Win 10 + NPM 6.14.14 + Node v14.17.5)

你能用這個設置再試一次嗎?

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM