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.

"export 'LineMaterial' was not found in 'three'

See original GitHub issue

报错 ERROR in ./node_modules/maptalks.three/dist/maptalks.three.es.js 1986:58-70 "export 'LineMaterial' was not found in 'three' ERROR in ./node_modules/maptalks.three/dist/maptalks.three.es.js 2098:58-70 "export 'LineMaterial' was not found in 'three' ERROR in ./node_modules/maptalks.three/dist/maptalks.three.es.js 5950:4-10 "export 'worker' was not found in 'maptalks' ERROR in ./node_modules/maptalks.three/dist/maptalks.three.es.js 6003:4-10 "export 'worker' was not found in 'maptalks' ERROR in ./node_modules/maptalks.three/dist/maptalks.three.es.js 6008:7-13 "export 'worker' was not found in 'maptalks'

版本使用情况 “three”: “^0.97.0”, “maptalks”: “^0.47.5”, “maptalks.three”: “^0.11.2”,

es6 使用方式 import * as THREE from “three”; import * as maptalks from “maptalks”; import { ThreeLayer } from “maptalks.three”;

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
deyihucommented, Jul 9, 2020

使用umd 包 from ‘maptalks.three/dist/maptalks.three.js’ 试试,不过我这边 是个警告,其他小伙伴反映也是警告

Read more comments on GitHub >

github_iconTop Results From Across the Web

three-stdlib version bump needed · Issue #109 - GitHub
js Attempted import error: 'FramebufferTexture' is not exported from 'three'.
Read more >
Import Line2, LineGeometry and LineMaterial - three.js forum
When working with the npm package of three.js , you can import the mentioned classes via ES6 imports like so: import { Line2...
Read more >
export 'default' (imported as 'Three') was not found in 'three'
It's happening because there are no default export made in the ThreeJS library, so you can import everything like this: import * as...
Read more >
three-full - npm
Three.js come with lot of examples files, which are curently not usable as ES6 module. The purpose of this project is to convert...
Read more >
Need advice on best workflow to export from 3ds Max to three ...
You can try A3dsViewer - includes quite good export to the three.js and allows to generate ... three.js dashed line material on linesegments...
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