Open emlai opened 1 year ago
SyntaxError: Cannot use import statement outside a module
You must have using import without modules. I think you need to add "type": "module"
in your package.json file. Or else you can use require
for importing file
@Charlygraphy23 .mts
doesn't work too.
I have a transform file written in TypeScript. It works when used as a local file (
-t path/to/file
) but not as a URL (-t https://...
).With a github enterprise raw file link like
https://raw.github.path/to/repo/path/to/file.ts?token=GHSAT0AAAAAAAAA6BCXCCVMJWKCSGK3L3UQZA2ZLWQ
, jscodeshift fails with the following error:When using a the url of the github "Raw" button, e.g.
https://github.path/to/repo/raw/path/to/file.ts
, I get the following error: