-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
rollup version is too old (is fake) #923
Comments
We're using Rollup 2.52.7: Line 81 in caf7ff8
Our deps are all inlined, so if you have |
I know wmr is new but my old rollup is from your package |
Your lock file clearly shows it resolving to 2.70, so I don't know what is referring to 2.8, but it's not us I don't think. |
Yes, I am also confused about this. |
|
Why are you installing |
reproduce this error just with wmr.config.mjs then you cannot start wmr. I'm trying to solve this problem so I add |
Hm, still cannot reproduce that error. Can you clear All I've done is create a new project, add that plugin, and add it to the config. Is that a correct reproduction? |
Let me clean everything and restart my computer, then see what will happen. Ok, still wrong... Let me use Linux to try again. Not working.... outrageous |
Can you try cloning and running this? https://github.com/rschristian/wmr-rollup-cjs Try installing with |
this is my env, I will try yours. Still wrong... |
I'm on Linux,, using Yarn v1 (1.22.18), if it helps. Bizarre issue. |
Still wrong in clean Win 11 virtual machine (Sandbox). Still wrong... omg... |
I'm on Node 14.19.1, though I don't think anything's really changed there. |
I tried with your node version and it's started but still thrown... funny...
And the page cannot be showing. I'm giving up. |
Shoot, I'm really sorry, I didn't notice you were running the dev server. I can reproduce there. Can you confirm that |
|
Well... different error is progress? |
The official Rollup commonjs plugin won't work with WMR's dev server, because it's not a full Rollup implementation. The version number is fake, but even if that were updated this wouldn't work - it's missing things like the plugin metadata API. Also, the way the CommonJS plugin works is extremely complex and retains data across multiple plugin passes, which does not work with the model WMR uses where each file is an individual HTTP request. That error looks like TypeScript is being authored in a non-TypeScript file ( |
uh... I didn't write any type... |
@developit Interestingly the package that's throwing the error ( |
@rschristian I thought it was because of the |
They've had two separate issues with two separate packages:
|
then
"@rollup/plugin-commonjs" requires at least [email protected] but found [email protected].
Cannot fix this by
yarn add -D rollup
I recommend you to use the dependence bot or npm-check-updates to keep new for your deps.
The text was updated successfully, but these errors were encountered: