You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 24, 2019. It is now read-only.
Looks like we do support .mjs as of #53. @pizza-r0b, if you can still reproduce this, what are you using for import support? And does your .mjs file have a // @flow comment?
I tried to use --experimental-modules for modules and it didn't work:
$ yarn flow-node --experimental-modules snipper.mjs
yarn run v1.10.1
$ /Users/dmnd/github/snipper/node_modules/.bin/flow-node --experimental-modules snipper.mjs
(node:71092) ExperimentalWarning: The ESM module loader is experimental.
file:///Users/dmnd/github/snipper/snipper.mjs:9
type Event =
^^^^^
SyntaxError: Unexpected identifier
at translators.set (internal/modules/esm/translators.js:48:18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This does not seem to be removing types from .mjs files.
Starting the server using:
The text was updated successfully, but these errors were encountered: