Closed ClementineAccount closed 4 months ago
I attempted this fix but it did not resolve it: https://stackoverflow.com/questions/61237208/rollup-error-default-is-not-exported-by-node-modules-react-index-js
I was able to get that same example file working with this template: https://github.com/yandeu/phaser-project-template#how-to-use
(after I updated it to use Phaser 3.6)
Sorry I can't solve this rollup setting issue.
Try adding @rollup/plugin-commonjs and @rollup/plugin-node-resolve plugins to your rollup build configuration?
@gzjayvan They were already added
Summary
When attempting to install using Typescript and npm install, I was unable to solve the "default is not exported" error when using: https://github.com/photonstorm/phaser3-typescript-project-template#phaser-3-typescript-project-template
I had the error when following these instructions: https://rexrainbow.github.io/phaser3-rex-notes/docs/site/ui-overview/#install-from-npm-package and using this main file:
The full error message as follows: