-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parcel 2.0.1 Building TS library failed #7411
Comments
Similar issue, but with the built-in
|
I can't repro this with the exact same parcel/node/npm/OS. @christopanayotovvia - can you provide a github repo where you get a consistent repro? |
Will be fixed in the next release: #7348 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 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: