-
Notifications
You must be signed in to change notification settings - Fork 4
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
Comments
Hey Josh
Thanks for your feedback
I will look into it and get back to you
Regards
…On Wed, 26 May 2021, 11:41 PM Josh Bright, ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#15>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD5MUYUZC2EPHECYAJAPWXDTPV2K3ANCNFSM45TAJE5Q>
.
|
Does closed mean that you can now use parcel or do you still need to use parcel-bundler? |
@rjbullock yes |
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
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!
The text was updated successfully, but these errors were encountered: