-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Labels
Can Close?We will close this in 30 days if there is no further activityWe will close this in 30 days if there is no further activity
Description
🐞 bug report
Affected Rule
The issue is caused by the rule: ts_devserver
Description
I have an Angular application with Three.js installed.
Everything works fine until I try to import the OBJLoader2 from three/examples/jsm/loaders/OBJLoader2.
const module = await import('three/examples/jsm/loaders/OBJLoader2')
const loader = new module.OBJLoader2()
The code snippet above doesn't work with the ts_devserver. I get this error in the browser console:
GET http://localhost:4200/three/examples/jsm/loaders/OBJLoader2.js net::ERR_ABORTED 404 (Not Found)
Error: Script error for "three/examples/jsm/loaders/OBJLoader2"
at makeError (ts_scripts.js?v=03400874:175)
at HTMLScriptElement.onScriptError (ts_scripts.js?v=03400874:1745)
So the ts_devserver cannot find the imported script. But running the app in production works totally fine.
🔬 Minimal Reproduction
🔥 Exception or Error
GET http://localhost:4200/three/examples/jsm/loaders/OBJLoader2.js net::ERR_ABORTED 404 (Not Found)
Error: Script error for "three/examples/jsm/loaders/OBJLoader2"
at makeError (ts_scripts.js?v=03400874:175)
at HTMLScriptElement.onScriptError (ts_scripts.js?v=03400874:1745)
Metadata
Metadata
Assignees
Labels
Can Close?We will close this in 30 days if there is no further activityWe will close this in 30 days if there is no further activity