You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VSCode <Guides> is underlined with the following: JSX element type 'Guides' does not have any construct or call signatures.ts(2604)
I also tried the following things without success:
// same issueimport{defaultasGuides}from'@scena/react-guides'// not availableimport{Guides}from'@scena/react-guides'// obviously breaks the typesimportGuidesfrom'@scena/react-guides/dist/guides.esm.js'importGuidesfrom'@scena/react-guides/src/index.esm.js'
I think moveable and your other repos are suffering from the same issue.
Maybe it's as simple as adding an "exports" field to the package.json? I'm not sure if the module property is still the way to go "module": "./dist/guides.esm.js", -> "exports": { "./": "./dist/guides.esm.js" }"
Let me know if I can help!
The text was updated successfully, but these errors were encountered:
Environments
Description
Hi there! I'm using node v20+ ESM with
type: "module"
and typescript with"moduleResolution": "NodeNext"
intsconfig.json
.In VSCode
<Guides>
is underlined with the following:JSX element type 'Guides' does not have any construct or call signatures.ts(2604)
I also tried the following things without success:
I think moveable and your other repos are suffering from the same issue.
Here's a minimal reproduction repository:
https://github.com/tom2strobl/daybrush-node-esm
Maybe it's as simple as adding an "exports" field to the package.json? I'm not sure if the module property is still the way to go
"module": "./dist/guides.esm.js",
->"exports": { "./": "./dist/guides.esm.js" }"
Let me know if I can help!
The text was updated successfully, but these errors were encountered: