Open Lauriero opened 2 years ago
I closed it because I didn't see that the error contains files that are not in the source folder: Error: ../src/model/client/commands/Command.ts(1,42): error TS2307: Cannot find module 'typescript-json-serializer' or its corresponding type declarations. These files are not even used in this project. There's no reason for them to be compiled with tsc. But as I already said, this is not happening on other platform I tested, even in Ubuntu 20.04
Hi there. I'm currently developing custom github action with typescript and I want to use npm package inside of action project. But unfortunately, I get "TS2307: Cannot find module 'typescript-json-serializer' or its corresponding type declarations" error when running github action runner runs tsc -p tsconfig.json. I tested this build on my PC with Windows 10 OS and in Ubuntu 20.04 server and it works fine.
My .github/workflows/generator.yml
My package.json
My tsconfig.json
Also package.json and package-lock.json in runner environment have typescript-json-serializer installed. As you can see, I make runner install this package manually but it doesn't help. Any help would be appreciated.