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

.presets must be an array, or undefined while parsing file :/src/static/js/script.js #1153

Open
geoport opened this issue Nov 11, 2022 · 1 comment

Comments

@geoport
Copy link

geoport commented Nov 11, 2022

I tried to import a simple js file as
{% compress js %} <script type="module" src="{% static 'js/script.js' %}"></script> {% endcompress %}
and it throwed an error - > .presets must be an array, or undefined while parsing file :/src/static/js/script.js

@bcail
Copy link
Contributor

bcail commented Jul 14, 2023

@geoport could you post the full traceback, as well as the contents of js/script.js?

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

2 participants