diff --git a/apps/meteor/definition/externals/csv-parse.d.ts b/apps/meteor/definition/externals/csv-parse.d.ts new file mode 100644 index 0000000000000..9efe517ebf5c5 --- /dev/null +++ b/apps/meteor/definition/externals/csv-parse.d.ts @@ -0,0 +1,8 @@ +// The Meteor bundler resolves npm requires by physical path and doesn't support +// package `exports` subpaths, so runtime code must keep importing the real file +// 'csv-parse/lib/sync'. That path isn't in csv-parse's exports map, which newer +// TypeScript resolution modes enforce — bridge the types to the exports-declared +// entry point. +declare module 'csv-parse/lib/sync' { + export * from 'csv-parse/sync'; +}