Uncaught SyntaxError: The requested module '/THREE.MeshLine.js' does not provide an export named 'MeshLine'
See original GitHub issueUncaught SyntaxError: The requested module '/THREE.MeshLine.js' does not provide an export named 'MeshLine'
Hi, Is there a way to import THREE.MeshLine.js in my main.js script ? I got this error.
There is the import code here :
import * as THREE from "/three.module.js";
import { OrbitControls } from "/OrbitControls.js";
import { TransformControls } from '/TransformControls.js';
import { CSS2DRenderer, CSS2DObject } from '/CSS2DRenderer.js';
import { MeshLine} from "/THREE.MeshLine.js";
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
THREE.js does not provide an export named EventDispatcher ...
When I attempt to import the OrbitControls object, I am getting the following error message in the Google Chrome DevTools console. The requested...
Read more >The requested module '/THREE.MeshLine.js' does not provide ...
Uncaught SyntaxError : The requested module '/THREE.MeshLine.js' does not provide an export named 'MeshLine'
Read more >reactor - three.js forum
Uncaught SyntaxError : The requested module './js/OrbitControls.js' does not provide an export named 'OrbitControls'.
Read more >three.meshline - npm
Start using three.meshline in your project by running `npm i ... There are 46 other projects in the npm registry using three.meshline.
Read more >What am I missing about module exports? : r/learnjavascript
Uncaught SyntaxError : The requested module '/node_modules/axios/index.js' does not provide an export named 'default'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👋🏻 this is not the solution BUT I was struggling with the same problem and I ended up slightly modifying the file so it works with import. Here’s how I did it: https://gist.github.com/jacopocolo/72c9970093b35be7b212e09c961b7fb4
There may be a workaround that allows you to use the THREE.MeshLine.js from this repository, but I did not figure it out.
Bump