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
Error! This experimental syntax requires enabling one of the following parser plugin(s): 'flow, typescript' (6:7) /home/circleci/project/node_modules/@octokit/openapi-types/generated/types.ts #16
Comments
Hi Lili, thank you for submitting the issue.
I've never seen that error before. I assume it's coming from
The package lockfile is not meant to be published, if we did you'd have a much larger dependency tree, because npm would not be able to de-duplicate its sub dependencies. You wouldn't receive security updates, etc. This is by design, that's why we follow semantic versioning in order to avoid breaking things in fix/feature releases. |
I looked into it and We started using |
This exact same issue (pkg + octokit) has also just started occurring to us, breaking our pipeline. I have tried downgrading Octokit to 16.43.2 (which I knew worked with pkg@4.4.9 when building our previous release binary) but the issue persists :( Deleting the file (node_modules/@octokit/openapi-types/generated/types.ts) right before packaging seems to solve it, but it's a bit hacky. This generates a warning when creating the package ("Warning Cannot find module '@octokit/openapi-types' from '/src'"), but everything seems to work normally with the binary. |
the 2nd issue's comment says
Here is the changelog of this release: mongodb/node-mongodb-native@6d4f18b#diff-648afe3d986261d8f2015b2b131b0e4a448d4dc6946cfde1a7a836876cee255eR5 Maybe there is something in there that we can do to resolve the problem on our side? I don't have time to investigate myself I'm afraid |
We are running into this issue as well, also with octokit. And our solution is also just to delete the offending types.ts file, but this is not a long term solution. |
I'm bumping into this issue now too in auto. The problem seems to be that this package specifies a TypeScript file for its {
"main": "generated/types.ts",
} Adding a blank |
Thanks for investigating, @hipstersmoothie! Let's do it |
🎉 This issue has been resolved in version 4.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
I've started getting a failing pipeline (something changed upstream it seems) on a project that uses
@oktokit/rest
package. It started failing about 2 weeks ago.The error references this package
Error! This experimental syntax requires enabling one of the following parser plugin(s): 'flow, typescript' (6:7) /home/circleci/project/node_modules/@octokit/openapi-types/generated/types.ts
I have tried downgrading the version of
@oktokit/rest
but still seeing the issue, perhaps I can't find the right version at which the package was introduced and many dependencies are not pinned so it is tricky to find.The package lockfile is not published with you releases so we end up getting whatever is the latest version within the range and I think this is the issue really, would someone be able to confirm?
More info
npx pkg . -t node12-linux-x64,node12-macos-x64,node12-win-x64
pkg
command succeeded, unfortunately I deleted it to make sure CI and local were in sync it so can't check the versions of the dependencies that last worked :(. Realised too late that I really needed that! And it was ignored in git 🤦 so no backups for me)Full error
The text was updated successfully, but these errors were encountered: