Skip to content
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 problem when trying to manage.py compress #15

Closed
majormunky opened this issue May 26, 2021 · 4 comments
Closed

Parcel problem when trying to manage.py compress #15

majormunky opened this issue May 26, 2021 · 4 comments

Comments

@majormunky
Copy link

majormunky commented May 26, 2021

When following the instructions to install Parcel, it installs Parcel v2, which seems not not have the same command line arguments that Parcel v1 used. I ran into this when trying to get the "typescript directly in my django templates" example working.

You can fix this by installing parcel-bundler instead. which I guess is also known as parcel v1.

The error message that comes up when trying to use this with just parcel is:
CommandError: An error occurred during rendering /Users/me/Desktop/code_testing/typescript/django_typescript/home/templates/home/index.html: error: unknown option '-d'

To fix this, I did:
sudo npm uninstall -g parcel
sudo npm install -g parcel-bundler

Edit: By the way I love this package, i'm just digging into Typescript and this is the first way that makes sense to me on how to get that working in django where my ts code is in my django templates!

@eadwinCode
Copy link
Owner

eadwinCode commented May 27, 2021 via email

@eadwinCode eadwinCode pinned this issue Apr 12, 2022
@rjbullock
Copy link

Does closed mean that you can now use parcel or do you still need to use parcel-bundler?

@eadwinCode
Copy link
Owner

@rjbullock yes

@rjbullock
Copy link

Sorry, but did you mean "yes, you can use parcel" or "yes, you still need to use parcel-bunder"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants