-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
[Bug]: esm.sh uses browser build on Deno SSR with v1.1.0 #426
Comments
The dev versions for Here is the {
"name": "@twind/core",
"version": "1.1.0",
"type": "module",
"main": "./core.cjs",
"exports": {
".": {
"types": "./core.d.ts",
"development": {
"esnext": "./core.esnext.dev.js",
"module": "./core.dev.js",
"worker": "./core.dev.js",
"browser": "./core.browser.dev.js",
"script": "./core.global.dev.js",
"node": {
"import": "./core.dev.mjs",
"require": "./core.dev.cjs"
},
"default": "./core.dev.js"
},
"esnext": "./core.esnext.js",
"module": "./core.js",
"worker": "./core.js",
"browser": "./core.browser.js",
"script": "./core.global.js",
"node": {
"import": "./core.mjs",
"require": "./core.cjs"
},
"default": "./core.js"
},
"./package.json": "./package.json"
},
} After reading https://github.com/ije/esm.sh/blob/main/server/nodejs.go#L500-L502 it should have picked But that will take me at least a day. Sorry... |
Not sure if this is related, but on
|
This seems to be unrelated but can be fixed in the same release. The issue here is that the To prevent this issue in the future I will downgrade the |
…bundle for deno fixes tw-in-js/twind#426
I think both issues are solved in the next release. Could you please try the next dist tag (eg |
@kkga Here is the playground I used for testing: https://dash.deno.com/playground/dry-mouse-49 |
@sastan makes sense, I thought it would be something like that. Thank you for clarifying. I will upgrade now and reply back here. |
I published these changes in the new release. You can try the latest stable versions now. |
Confirming that it works now, thanks! 👍🏼 |
Reproduction
Here's a minimal example to reproduce on Deno playground.
https://dash.deno.com/playground/twind-1x-ssr-rendering (try changing the import to @twind/core@1.1.0 to see the resulting error).
Describe the bug
I've been using twind v1.0.3 for server-side rendering on Deno with
inline()
.Trying to upgrade to the latest twind v1.1.0 via esm.sh (https://esm.sh/@twind/core@1.1.0), but getting an error when calling
setup()
:Severity
blocking an upgrade
System Info
Additional Information
Discord: https://discord.com/channels/798324011980423188/929266391645839360/1054016301149999115
The text was updated successfully, but these errors were encountered: