Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚨 Build failed. #10

Open
laboletory opened this issue Jun 10, 2023 · 0 comments
Open

🚨 Build failed. #10

laboletory opened this issue Jun 10, 2023 · 0 comments

Comments

@laboletory
Copy link

laboletory commented Jun 10, 2023

parcel/transformer-js: Browser scripts cannot have imports or exports.

Arkanoid/breakoout/src/main.ts:1:1

1 | import Phaser from 'phaser'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 |
3 | import Preloader from './scenes/Preloader'

Arkanoid/breakoout/src/index.html:6:3
5 |

6 | <script src="main.ts"></script>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The environment was originally created here
7 |
8 |

💡 Add the type="module" attribute to the <script> tag.
📝 Learn more: https://parceljs.org/languages/javascript/#classic-scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant