Great article. Can you please help me with this error: Could not find a declaration file for module '@my-organisation/common'. I followed your article to the teeth but can't seem to find a solution to this issue.
You can check the node_modules folder first to make sure @my-organisation/common existed. Somehow after yarn install / update some packages just "disappear". If so, you can do a yarn install --force to force yarn install again.
Preact - Next.js - Deno - SSR - SSG 💻
Open source 📂
Machine learning 🤖
Books 📖
Sport 🏃♂️
Nature 🌱
Focus on being useful. I contribute AMAP to the OSS community. Love learning by doing.
Preact - Next.js - Deno - SSR - SSG 💻
Open source 📂
Machine learning 🤖
Books 📖
Sport 🏃♂️
Nature 🌱
Focus on being useful. I contribute AMAP to the OSS community. Love learning by doing.
Great article. Can you please help me with this error:
Could not find a declaration file for module '@my-organisation/common'
. I followed your article to the teeth but can't seem to find a solution to this issue.You can check the node_modules folder first to make sure
@my-organisation/common
existed. Somehow after yarn install / update some packages just "disappear". If so, you can do ayarn install --force
to force yarn install again.In my case I checked an exist inside the
node_modules
, but without thedist
folder.shared package tsconfig.json:
and shared package.json:
Do you know why this can happen? Thanks!
@t7yang I updated your example from typescript 3.8.3 to 4.9.5 and is not working either. Do you know how to fix it for TypeScript v.4.9.5?
have you run the
build
cmd? you need to build at least once to generate thedist
folder. the final solution is run thetsc
in yourshared
folder.Thanks!