We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I try to install a module pointing to a bundled file generated from parcel build it throws an error.
{ "name": "parcel-package", "version": "1.0.0", "description": "Reproduction of parcel error", "source": "src/index.ts", "main": "dist/main.js", "module": "dist/module.js", "types": "dist/types.d.ts", "bin": { "parcel-package": "dist/main.js" }, "scripts": { "build": "parcel build", "install-module": "npm i -g .", "test-module": "parcel-package" }, "author": "Caio Borghi", "license": "ISC", "dependencies": { "chalk": "^5.1.2" }, "devDependencies": { "@parcel/packager-ts": "2.8.0", "@parcel/transformer-typescript-types": "2.8.0", "parcel": "^2.8.0", "typescript": ">=3.0.0" } }
It should work after install
It's not working.
Understand why NPM cannot run the bundle and fix the issue.
I'm trying to build a npm module to publish on npm
With this index file and the package.json you're already able to reproduce it.
import chalk from "chalk" console.log(chalk.green('This is a test application'))
Simply run:
npm run install-module
Then
npm run test-module
And you'll see the following error
The text was updated successfully, but these errors were encountered:
Please provide a reproduction by filling out the issue template
Sorry, something went wrong.
Comment updated with src/index.ts file and package.json
Hey @mischnic were you able to check it?
No branches or pull requests
馃悰 bug report
If I try to install a module pointing to a bundled file generated from parcel build it throws an error.
馃帥 Configuration (.babelrc, package.json, cli command)
package.json
馃 Expected Behavior
It should work after install
馃槸 Current Behavior
It's not working.
馃拋 Possible Solution
Understand why NPM cannot run the bundle and fix the issue.
馃敠 Context
I'm trying to build a npm module to publish on npm
馃捇 Code Sample
With this index file and the package.json you're already able to reproduce it.
src/index.ts
Simply run:
Then
And you'll see the following error
馃實 Your Environment
The text was updated successfully, but these errors were encountered: