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
Weird resolving issues happen as soon as import form typescript module added:
import { transform } from 'typescript';
Error example 1
Buffer module was resolved as empty.js (as I've found from bundled file in temp dir) despite having addNodeGlobals and even buffer module installed manually.
Uncaught TypeError: Cannot read property 'isBuffer' of undefined\nat /var/folders/01/xnjcgz3d5x16_nzyt82rjh1c07pp5j/T/karma-typescript-bundle-4483FfKhLR6XL56f.js:19867:27
One of my files was referencing uuid js module, which is using buffer module imported. Works if typescript import removed.
Issue
Weird resolving issues happen as soon as import form
typescript
module added:Error example 1
Buffer
module was resolved asempty.js
(as I've found from bundled file in temp dir) despite havingaddNodeGlobals
and evenbuffer
module installed manually.One of my files was referencing
uuid
js module, which is usingbuffer
module imported. Works iftypescript
import removed.In bundle file:
How to repro
tsconfig.json
:karma.conf.js
:issue.ts
:The text was updated successfully, but these errors were encountered: