Fork me on GitHub
<
2022-06-26
>
geraldodev03:06:30

hi folks, i'm trying to use [email protected] which is a typescript package, i'm getting . {:tag :shadow.build.npm/missing-entries, :entries ["./main.js" "./index.js"], :package-dir #object[java.io.File 0x2be31a66 "/home/geraldo/projetos/crudis/node_modules/react-router-dom"]} ExceptionInfo: package in /home/geraldo/projetos/crudis/node_modules/react-router-dom specified entries but they were all missing, These are the files at the root of node-modules

geraldodev04:06:18

shadow does not compiles typescript right ? I've asked on react-router forum and they told me it was an oversight. They instructed me to use "react-router-dom": "6.4.0-pre.2" which is js.

thheller06:06:37

@geraldodev the package is just broken. in package.json it referneces these files

``````"main": "./main.js",
"module": "./index.js",``````
but they are not included in the package. it will not work in any bundler and has nothing to do with typescript or shadow-cljs. someone just forgot to put the files in the package when publishing

👍 1
pinkfrog13:06:38

Why babel is run when shadow is compiling cljs to js?