Open JoshK2 opened 4 years ago
I have the same exact problem. Is this going to be a quick fix or... ? :pray:
Typescript compiler updated to 3.0.28, can you check the issue with that version ? Please note you can use typescript directly and not the react-typescript version. They are different names leading to the same place.
@qballer I'm actually using bit.envs/compilers/react-typescript@3.0.6
and apart from the problems with jest tester
everything is working fine.
However, when switching to bit.envs/compilers/typescript@3.0.28
the build
step is failing as well with the following error:
⠨ building components(node:29667) ExperimentalWarning: The fs.promises API is experimental
⡋⠀ building componentsNavbar/Navbar.tsx:7:19 - error TS2307: Cannot find module './Navbar.module.css'.
7 import Style from './Navbar.module.css';
~~~~~~~~~~~~~~~~~~~~~
Navbar/UserDropdown/index.tsx:7:19 - error TS2307: Cannot find module './UserDropdown.module.css'.
7 import Style from './UserDropdown.module.css';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 2 errors.
error: bit failed to build claudio_cortese.terram/navbar@0.0.25 with the following exception:
Command failed with exit code 2 (ENOENT): /home/claudio/Documents/Abstract/terram-components/.bit/components/compilers/typescript/bit.envs/3.0.28/node_modules/typescript/bin/tsc -d
Error: Command failed with exit code 2 (ENOENT): /home/claudio/Documents/Abstract/terram-components/.bit/components/compilers/typescript/bit.envs/3.0.28/node_modules/typescript/bin/tsc -d
at makeError (/home/claudio/Documents/Abstract/terram-components/.bit/components/compilers/typescript/bit.envs/3.0.28/node_modules/execa/lib/error.js:58:11)
at handlePromise (/home/claudio/Documents/Abstract/terram-components/.bit/components/compilers/typescript/bit.envs/3.0.28/node_modules/execa/index.js:112:26)
at process._tickCallback (internal/process/next_tick.js:68:7)
As you can see I'm using CSS Modules
.
Thoughts?
Can you share a small repo which reconstructs this issue ?
@qballer Sure, going to do that ASAP :relaxed:
And it's gone?
I have a project written in react and typescript, and tested with jest tester and is not working. This is the error I get:
STR:
bit add src/assets/* -n assests && bit add src/components/*/ -t 'src/components/{PARENT}/*test.tsx' && bit add src/styles/* -n styles && bit add src/utils/*/ -t 'src/utils/{PARENT}/*test.ts'
bit tag -a --skip-tests
and this is my jest.config.js: