SyntaxError with the Without Build Tools setup #2287
Replies: 4 comments 1 reply
-
Please provide your version of react-three-fiber & react. Also please provide a reproduction of the issue so we can accurately investigate. |
Beta Was this translation helpful? Give feedback.
-
I just copy and pasted the example from here https://docs.pmnd.rs/react-three-fiber/getting-started/installation#without-build-tools console says "Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=imports/unoptimized/constants.js' does not provide an export named 'ConcurrentRoot' (at fiber.js:4:9)" |
Beta Was this translation helpful? Give feedback.
-
this import throws the error import { Canvas, useFrame } from 'https://cdn.skypack.dev/@react-three/fiber' |
Beta Was this translation helpful? Give feedback.
-
Skypack seems unable to handle import such as I'd recommend another service like https://esm.sh that can properly link these: import ReactDOM from 'https://esm.sh/react-dom'
import React, { useRef, useState } from 'https://esm.sh/react'
import { Canvas, useFrame } from 'https://esm.sh/@react-three/fiber'
import htm from 'https://esm.sh/htm'
const html = htm.bind(React.createElement)
ReactDOM.render(
html`
<${Canvas} camera=${{ position: [0, 1.3, 3] }}>
<gridHelper args=${[4, 4]} />
<//>
`,
document.getElementById('root')
) |
Beta Was this translation helpful? Give feedback.
-
Uncaught SyntaxError: The requested module '/-/[email protected]/dist=es2019,mode=imports/unoptimized/constants.js' does not provide an export named 'ConcurrentRoot' (at fiber.js:4:9)
Beta Was this translation helpful? Give feedback.
All reactions