question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught SyntaxError: The requested module '/THREE.MeshLine.js' does not provide an export named 'MeshLine'

See original GitHub issue
Uncaught 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:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jacopocolocommented, Jul 17, 2020

👋🏻 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.

0reactions
davincioscommented, Jun 28, 2022

Bump

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found