Closed PeerRich closed 3 years ago
fixed it with
const ReactGlobe = dynamic(() => import('react-globe'), {
ssr: false
});
Hi @PeerRich, I'm not very familiar with the bundling/build tools (this library uses microbundle
). If you are able to find more information on how this can be fixed in the library, a PR is very welcome and I'm interested to know how/where the fix is applied!
@PeerRich i tryed your little trick but it seems it still doesnt want to work for me
Unhandled Runtime Error
TypeError: Class constructor EventDispatcher cannot be invoked without 'new'
Call Stack
InteractionManager
../node_modules/three.interaction/build/three.interaction.module.js (711:0)
new Interaction
../node_modules/three.interaction/build/three.interaction.module.js (4466:0)
scene.camera
../node_modules/react-globe/dist/index.module.js (1:4769)
new e
../node_modules/react-globe/dist/index.module.js (1:4872)
eval
../node_modules/react-globe/dist/index.module.js (1:12432)
invokePassiveEffectCreate
../node_modules/react-dom/cjs/react-dom.development.js (23487:0)
HTMLUnknownElement.callCallback
../node_modules/react-dom/cjs/react-dom.development.js (3945:0)
Object.invokeGuardedCallbackDev
../node_modules/react-dom/cjs/react-dom.development.js (3994:0)
invokeGuardedCallback
../node_modules/react-dom/cjs/react-dom.development.js (4056:0)
flushPassiveEffectsImpl
../node_modules/react-dom/cjs/react-dom.development.js (23574:0)
Did you run in something similar?
@chrisrzhou it would be really cool to have next support as it is one of the most used react tools at the time.
Some solution?
@intensr did you find the solution of the error?
Hey Chris, I am getting "Cannot use import statement outside a module" when running the standard globe:
I think it's because this repository is missing Nextjs support?