We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import
export
Describe the bug
Trying to run this code using Boa: https://github.com/KieranP/Game-Of-Life-Implementations/tree/master/typescript
import { World } from './world.js'; producing this error: Uncaught SyntaxError: expected token '.', got '{' in import.meta at line 1, col 8
import { World } from './world.js';
Uncaught SyntaxError: expected token '.', got '{' in import.meta at line 1, col 8
export class World { producing this error: Uncaught SyntaxError: unexpected token 'export', primary expression at line 3, col 1
export class World {
Uncaught SyntaxError: unexpected token 'export', primary expression at line 3, col 1
To Reproduce
Compile the Typescript to Javascript using tsc and then try to run boa play.js
tsc
boa play.js
Expected behavior
Should parse and run as expected. The code doesn't contain anything complex
Build environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
This is what I did to replicate:
brew install typescript cargo install boa_cli PATH=~/.cargo/bin:$PATH git clone https://github.com/KieranP/Game-Of-Life-Implementations.git cd Game-Of-Life-Implementations/typescript tsc boa play.js
I immediately get the Uncaught SyntaxError: expected token '.', got '{' in import.meta at line 1, col 8 error
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Trying to run this code using Boa: https://github.com/KieranP/Game-Of-Life-Implementations/tree/master/typescript
import { World } from './world.js';
producing this error:Uncaught SyntaxError: expected token '.', got '{' in import.meta at line 1, col 8
export class World {
producing this error:Uncaught SyntaxError: unexpected token 'export', primary expression at line 3, col 1
To Reproduce
Compile the Typescript to Javascript using
tsc
and then try to runboa play.js
Expected behavior
Should parse and run as expected. The code doesn't contain anything complex
Build environment (please complete the following information):
The text was updated successfully, but these errors were encountered: