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
{{ message }}
Repository navigation
browser: true ignored when plugin-node-resolve 14 is used with plugin-typescript #1267
Same issue here. My workaround is to disable @rollup/plugin-typescript's resolveId and add .ts to @rollup/plugin-node-resolve extensions:
importtypescriptPluginfrom"@rollup/plugin-typescript";import{nodeResolveasnodeResolvePlugin}from"@rollup/plugin-node-resolve";consttypescript={
...typescriptPlugin(/* ... */),// do not resolve anything instead leave this to `@rollup/plugin-node-resolve`!// see also: https://github.com/rollup/plugins/issues/1267resolveId: undefined,};constnodeResolve=nodeResolvePlugin({extensions: [".mts",".ts",".cts",".mjs",".js",".cjs",".json",".node"],mainFields: ["browser","module","jsnext:main","main"],});// ...
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
Activity
pedrotorchio commentedon Sep 28, 2022
This could finally explain the issues I'm having. +1
FranklinWhale commentedon Oct 5, 2022
rollup-plugin-typescript2 has just released a version that works properly with plugin-node-resolve 14
https://replit.com/@FranklinWhale/NodeResolve13-TypeScript2
https://replit.com/@FranklinWhale/NodeResolve14-TypeScript2
fix(typescript): don't resolve filtered files (rollup#1267)
fix(typescript): don't resolve filtered files (rollup#1267)
dkuhnert commentedon Oct 31, 2022
Same issue here. My workaround is to disable
@rollup/plugin-typescript'sresolveIdand add.tsto@rollup/plugin-node-resolveextensions:stale commentedon Jan 5, 2023
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
fix(typescript)!: don't resolve filtered files (#1267) (#1310)