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
Following https://parceljs.org/getting-started/library/ to building TS library with types. Simple TS file in src/index.ts. and following package.json config ( see below ). Parcel 2.0.1, Node v16.13.0 , NPM 8.1.0
Build proper dist/main.js, dist/module.js and dist/types.d.ts files
馃槸 Current Behavior
Cleans package.json and installs @parcel/transformer-typescript-types as dev dependency. When reverting the package.json file and manually add @parcel/transformer-typescript-types v 2.0.1, it fails with the following error:
parcel build
馃毃 Build failed.
Error: Could not resolve module "wrap-ansi" from "/Users/USER/Desktop/PROJECT_FOLDER/node_modules/@parcel/reporter-cli/lib/CLIReporter.js"
Installing wrap-ansi as dependency or dev dependency does not fix the isse.
馃敠 Context
Currently parcel v 2.0.1 cannot be used to build / distribute library
馃悰 bug report
Following https://parceljs.org/getting-started/library/ to building TS library with types. Simple TS file in src/index.ts. and following package.json config ( see below ). Parcel 2.0.1, Node v16.13.0 , NPM 8.1.0
馃帥 Configuration (.babelrc, package.json, cli command)
馃 Expected Behavior
Build proper
dist/main.js
,dist/module.js
anddist/types.d.ts
files馃槸 Current Behavior
Cleans package.json and installs @parcel/transformer-typescript-types as dev dependency. When reverting the package.json file and manually add @parcel/transformer-typescript-types v 2.0.1, it fails with the following error:
馃毃 Build failed.
Error: Could not resolve module "wrap-ansi" from "/Users/USER/Desktop/PROJECT_FOLDER/node_modules/@parcel/reporter-cli/lib/CLIReporter.js"
Installing
wrap-ansi
as dependency or dev dependency does not fix the isse.馃敠 Context
Currently parcel v 2.0.1 cannot be used to build / distribute library
馃捇 Code Sample
And literally any file in
src/index.ts
馃實 Your Environment
The text was updated successfully, but these errors were encountered: