You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building browserify from docker, tsify will complain about "cannot find module abc". I noticed casing anomalies during output, and after some investigation/debugging determined it's related to normalizing filenames in host.js that is somehow not working as expected when executing from a docker environment.
repro: (on mac, simplified steps)
create a new project
Add a repro.d.ts file that imports a module
a. npm i -S @types/events' b. in repro.d.ts file i. add imports {EventEmitter} from 'events'`
ii. Export something
bundle with browserify, and tsify plugin, default options (I used the CLI)
expected: output.
actual: output.
In a docker image, do the same process. Mount local file system into docker
expected: output.
Actual: TS Errors complaining about 'cannot find module'
Workaround: set "forceConsistentCasingInFileNames": true, in tsconfig. This is read by Host.js to normalize filenames which is related to this bug.
The text was updated successfully, but these errors were encountered:
If for some reason, this is not working within Docker, I think you will have to stick with the work around, as I don't have time to look into this, ATM.
Also, if it works fine without that dependency, I'd suggest that there is something amiss within that specific dependency (or its types) that can be addressed upstream.
When building browserify from docker, tsify will complain about "cannot find module abc". I noticed casing anomalies during output, and after some investigation/debugging determined it's related to normalizing filenames in host.js that is somehow not working as expected when executing from a docker environment.
repro: (on mac, simplified steps)
create a new project
Add a repro.d.ts file that imports a module
a.
npm i -S @types/events' b. in repro.d.ts file i. add
imports {EventEmitter} from 'events'`ii. Export something
bundle with browserify, and tsify plugin, default options (I used the CLI)
expected: output.
actual: output.
In a docker image, do the same process. Mount local file system into docker
expected: output.
Actual: TS Errors complaining about 'cannot find module'
Workaround: set "forceConsistentCasingInFileNames": true, in tsconfig. This is read by Host.js to normalize filenames which is related to this bug.
The text was updated successfully, but these errors were encountered: