-
Notifications
You must be signed in to change notification settings - Fork 671
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
Can't resolve '@theme-ui/css/dist/types' in '...node_modules/@theme-ui/core/dist' #1134
Comments
I ran into this too this morning, reverting to 0.3.1 oddly broke the |
Had the same issue in development. This is a must-fix for v0.4 |
Same with |
Yes I should have added, I did a clean check with rc 1,2 and 3 and they all had the same error. It was odd as i say as I'd been using parts of rc1 for a good while without any issues. |
It has to happen with rc.1 and rc.2 as well because even if you explicitly request rc.1 (or 2) from your package.json theme-ui still uses If someone urgently needs a hotfix you should be able to add a resolution to the package.json like so: "resolutions": {
"@theme-ui/core": "0.4.0-rc.1"
} Otherwise just wait... a release candidate is not stable software. ;) |
Fair enough, works for me on 0.3.1 so sticking with that for now...just trying to add some further info ... is any software regardless of a ref stable? No one suggested anything other, happy to wait, as long as it takes. |
I broke it! I'm sorry 🙏🙇 0.4.0-rc.3 builds incorrectly. import of Adding |
Cool :) Tried resolutions here and it didn't change anything for me, but good it works for others 👍 |
just to confirm |
@hasparus What is the latest solution to this? Is there a particular version of theme-ui I should upgrade dripsy to? Dripsy currently uses these versions: {
"@theme-ui/core": "^0.4.0-rc.1",
"@theme-ui/css": "^0.4.0-rc.1"
} And users have this in their {
"resolutions": {
"@theme-ui/core": "0.4.0-rc.1",
"@theme-ui/css": "0.4.0-rc.1",
"@theme-ui/mdx": "0.4.0-rc.1"
}
} Ideally, I could change this to not need |
@nandorojo all versions after 0.4.0-rc.3 should be fine. Do you still have this problem with them? |
I'll upgrade then - just wanted to check before pushing the change to everyone. Thanks! |
As of yesterday "theme-ui": "0.4.0-rc.1" alll was well, but as I come to continue development of my gatsby site I have this breakage and am still trying to follow the flow as to what has changed.
The referenced file exists but vscode complains that it 'Contains emphasized items' ... but no errors show in the code in the file ... except Cannot read file '.../node_modules/tsconfig.json'. in the vscode log.
Edit: Initially I had theme-ui 0.4.0-rc.1 and theme-ui component pinned at 0.3.1, but it seems that no longer works for some reason and the only way I get get a build, was to revert both back to 0.3.1
I thought I'd ask in case someone can help me locate the issue?
Thanks in advance.
The text was updated successfully, but these errors were encountered: