Closed mathieuprog closed 2 years ago
I created a new npm repo solid-compose based on the ts-vitest template.
solid-compose
ts-vitest
My app, which is also based on the ts-vitest template depends on solid-compose, but when trying to install the dependency, fix-jest-dom is throwing an error.
fix-jest-dom
C:\data\projects\my-app>npm install solid-compose npm ERR! code 1 npm ERR! path C:\data\projects\my-app\node_modules\solid-compose npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\Default\AppData\Local\Temp\postinstall-498392fc.cmd npm ERR! file:///C:/data/projects/my-app/node_modules/solid-compose/fix-jest-dom.mjs:8 npm ERR! if (err) throw err; npm ERR! ^ npm ERR! npm ERR! [Error: ENOENT: no such file or directory, open 'C:\data\projects\my-app\node_modules\solid-compose\node_modules\@types\testing-libraryjest-dom\index.d.ts'] { npm ERR! errno: -4058, npm ERR! code: 'ENOENT', npm ERR! syscall: 'open', npm ERR! path: 'C:\data\projects\my-app\node_modules\solid-compose\node_modules\@types\testing-libraryjest-dom\index.d.ts' npm ERR! }
C:\data\projects\my-app>npm install solid-compose
npm ERR! code 1 npm ERR! path C:\data\projects\my-app\node_modules\solid-compose npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c C:\Users\Default\AppData\Local\Temp\postinstall-498392fc.cmd npm ERR! file:///C:/data/projects/my-app/node_modules/solid-compose/fix-jest-dom.mjs:8 npm ERR! if (err) throw err; npm ERR! ^ npm ERR! npm ERR! [Error: ENOENT: no such file or directory, open 'C:\data\projects\my-app\node_modules\solid-compose\node_modules\@types\testing-libraryjest-dom\index.d.ts'] { npm ERR! errno: -4058, npm ERR! code: 'ENOENT', npm ERR! syscall: 'open', npm ERR! path: 'C:\data\projects\my-app\node_modules\solid-compose\node_modules\@types\testing-libraryjest-dom\index.d.ts' npm ERR! }
Apparently we can't make Solid libs with Vite
I created a new npm repo
solid-compose
based on thets-vitest
template.My app, which is also based on the
ts-vitest
template depends onsolid-compose
, but when trying to install the dependency,fix-jest-dom
is throwing an error.