Skip to content

Error: Cannot find module 'three' #488

Closed Answered by NicolasNewman
NicolasNewman asked this question in Q&A
Discussion options

You must be logged in to vote

In my particular case changing the module type to ESNext in my typescript config resolved the issue.

Example:

{
    "compilerOptions": {
      "lib": [
        "es2015",
        "dom"
      ],
      "resolveJsonModule": true,
      "esModuleInterop": true,
      "sourceMap": true,
      "declaration": false,
      "module": "ESNext",
      "moduleResolution": "node",
      "target": "es2015"
      "strict": true,
    }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@NicolasNewman
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by NicolasNewman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants