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

Running in Fable 3 project. #10

Open
babysnakes opened this issue Aug 9, 2022 · 3 comments
Open

Running in Fable 3 project. #10

babysnakes opened this issue Aug 9, 2022 · 3 comments

Comments

@babysnakes
Copy link

Description

I'm not sure whether it's a bug (in the sense that this library does not run on Fable 3) or outdated documentation (or just my misunderstanding 🙂 ) but the documentation for running tests refer to fable-splitter. Isn't it for Fable 2? Can I replace it with dotnet fable?

Thanks.

@babysnakes
Copy link
Author

Doing some (very) basic tests it seems that I can replace fable-splitter ... with dotnet fable. If this is known, I can create a PR for replacing it in the docs.

Thanks.

@babysnakes
Copy link
Author

Ok, update, this does not work when trying to import a module. It fails with an error: SyntaxError: Cannot use import statement outside a module. Maybe I need to pass it via babel or something but this is over my head as I'm not a front-end developer 🙁.

@babysnakes
Copy link
Author

Just in case someone newbie as me is having the same issue - I solved it with creating a babel.config.js file:

module.exports = {presets: ['@babel/preset-env']}

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