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

Cannot find module '@babel/plugin-proposal-object-rest-spread' #133

Closed
simonihmig opened this issue Jun 29, 2023 · 3 comments
Closed

Cannot find module '@babel/plugin-proposal-object-rest-spread' #133

simonihmig opened this issue Jun 29, 2023 · 3 comments

Comments

@simonihmig
Copy link
Collaborator

Seen this in one of my addons, but also happening here in CI.

This is happening because of some sloppy dependency handling in plugin-rollup-ts, as it tries to resolve these babel blugins without actually declaring any dependency whatsoever on them. I guess this accidentally worked because of some looseness of package managers, where some other dependency brought those in. Strangely enough that was even the case for pnpm!

This was only popping up now (when ignoring the lockfile!), presumably because those other dependencies changed something to not make those plugins resolvable anymore..

As already reported in wessberg/rollup-plugin-ts#189 long time ago, using these plugins shouldn't actually happen at all. So I hope landing this PR will actually fix both issues.

Also reported upstream here, posting here for visibility.

@ijlee2
Copy link
Contributor

ijlee2 commented Jun 29, 2023

I've seen the error happen since about a month ago, after updating an unrelated package (e.g. eslint plugin). As a temporary fix, I patched rollup-plugin-ts by removing code.

https://github.com/ijlee2/ember-container-query/blob/4.0.4/patches/rollup-plugin-ts%403.2.0.patch (pnpm only)

@simonihmig
Copy link
Collaborator Author

Likely the solution will be to drop rollup-plugin-ts, see #136

@NullVoxPopuli
Copy link
Collaborator

Looks resolved! We can re-open if this is still an issue with the latest blueprint

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

3 participants