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
The text was updated successfully, but these errors were encountered:
SayBGM
changed the title
A phenomenon in which the TypeScript interface is not normally detected when build.
Invalid TypeScript declaration files (.d.ts) emitted when mono-repo modules are being referred.
Dec 3, 2021
I think that #7426might fix this. However, in the repro steps above, show typescript ^4.4.4 as the dependency (which is somewhat ambiguous, because npm/yarn might install a higher version). @Mint-SayBGM - can you confirm the exact version of typescript that is installed when you get the repro? And see if downgrading to version 4.4.x or earlier fixes the problem?
🐛 bug report
It seems Parcel fails to emit valid TypeScript declaration files (.d.ts) when the input source is importing any of its mono-repo related modules.
https://github.com/Mint-SayBGM/parcel-typescript-interface-error
🎛 Configuration (.babelrc, package.json, cli command)
package.json
packages/sdk/package.json
packages/types/package.json
🤔 Expected Behavior
packages/sdk/dist/index.d.ts
😯 Current Behavior
packages/sdk/dist/index.d.ts
💁 Possible Solution
Note that I could not reproduce this behavior with TSC so seems like it’s somewhat relates to Parcel’s own build pipeline.
💻 Code Sample
https://github.com/Mint-SayBGM/parcel-typescript-interface-error
🌍 Your Environment
The text was updated successfully, but these errors were encountered: