#8 stream code
Added 2021-05-09 20:37:29 +0000 UTCComments
Thanks Yuri! But no i get following error, do you have an idea? 🚨 Build failed. @parcel/core: Failed to resolve 'three/examples/jsm/controls/OrbitControls.js' from './js/app.js' /Users/mb/Desktop/revo/js/app.js:2:31 1 | import * as THREE from "three"; > 2 | import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 3 | // import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; 4 |
Mario Boro
2022-02-01 09:51:30 +0000 UTChi! just edit html to have __script type="module"__ attribute, parcel 2 requires that.
Yuri Artiukh
2022-02-01 04:51:48 +0000 UTCHello Yuri, i get following errors while installing it with npx parcel index.html. Please can you help? Server running at http://localhost:1234 🚨 Build failed. @parcel/transformer-js: Browser scripts cannot have imports or exports. /Users/mb/Desktop/revo/js/app.js:1:1 > 1 | import * as THREE from "three"; > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; 3 | // import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; /Users/mb/Desktop/revo/index.html:14:2 13 | > 14 | > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The environment was originally created here 15 | 16 | 💡 Add the type="module" attribute to the tag. 📝 Learn more: https://parceljs.org/languages/javascript/#classic-scripts
Mario Boro
2022-01-31 12:28:27 +0000 UTC