Error with certain build setups: No known conditions for "." entry in "devalue" package
IgnusG opened this issue · 0 comments
IgnusG commented
I was getting this error while using this package through linaria
(one of its dependencies) inside of rakkasjs.
Adding a default
condition to the exports
field fixed it for me:
"exports": {
".": {
"types": "./types/devalue.d.ts",
"import": "./devalue.js",
"default": "./devalue.js"
}
},
PS: Apparently the types
condition should also come first even though it works anyway 😅 - https://nodejs.org/api/packages.html#packages_community_conditions_definitions