-
Notifications
You must be signed in to change notification settings - Fork 414
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: Cannot find module 'core-js/modules/es6.regexp.to-string' #420
Comments
I added "core-js": "^2.0.0", in package.json and everything worked |
Also having this problem. I'm a first time user to Linaria and was simply following the install instructions. I added
to devDependencies. This looks like #361 and should be fixed but isn't |
Looks like |
Hi! Thanks for your input. Could you try alpha version? |
@pbitkowski thanks. Can you publish 1.4.0-alpha.0 to npm? |
we are using corejs v3 -> that won't work with linaria 1.3.1.
🥺 |
But, does it not include Typescript types? |
Yea it looks like the alpha version doesn't have typescript types. |
For now I'm just using
Added into a |
any workaround without using alpha version? I'm getting this when I try to use storybook addons |
Is there a fix in the works for this? Experiencing the same issue. |
I used |
Core-js 2 is deprecated. There are projects that could depend on core-js latest version features. Any plans to drop v2 on linaria? |
I'm using firebase in my project. So downgrading core-js to version 2 was not an option for me. Also, using craco-linaria plugin with craco made it possible to use Linaria in React with create-react-app, but without ejecting |
I also ran into this problem with create-react-app and craco plugin for linaria. |
Run into this as well. Why is linaria using old version of core-js? |
By the way, why doesn't release 1.4.0? |
@Hotell did you find a solution for this on the alpha? |
So what's going on? Am getting that it cannot find It's really a shame, I wanted to use this in production. This is like the holy grail of CSS-in-JS libraries, guys. Keep it alive! |
Had the same problem and solved it just now by installing the latest beta like so: |
Thank you for all the responses, I created an issue where we would try to address the problem better. I'm happy that some workarounds exist. Hence I'm closing. |
I ran this example on my computer and I got this error:
ERROR in ./src/App.js Module build failed (from ./node_modules/linaria/loader.js): Error: Cannot find module 'core-js/modules/es6.regexp.to-string' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:613:15) at Function.Module._load (internal/modules/cjs/loader.js:539:25) at Module.require (internal/modules/cjs/loader.js:667:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (/Users/egortrubnikov-panov/Downloads/linaria-demo 2/node_modules/linaria/lib/loader.js:3:1) at Module._compile (internal/modules/cjs/loader.js:738:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:749:10) at Module.load (internal/modules/cjs/loader.js:630:32) at tryModuleLoad (internal/modules/cjs/loader.js:570:12) at Function.Module._load (internal/modules/cjs/loader.js:562:3)
how can I fix this?
The text was updated successfully, but these errors were encountered: