Ask A Question

Notifications

You’re not receiving notifications from this thread.

ERROR in chunk application [entry] js/[name]-[contenthash].js Cannot use [chunkhash] or [contenthash] for chunk in ....

asnCode asked in Rails

Hello i pass one day to debug this ....
I following step by step this tutorial, but when in launch bin/webpack-dev-server
https://dev.to/davidteren/getting-started-with-rails-6-1-tailwindcss-jit-webpacker-postcss-8-25g7

I have always this error in red !!!

ERROR in chunk application [entry]
js/[name]-[contenthash].js
Cannot use [chunkhash] or [contenthash] for chunk in 'js/[name]-[contenthash].js' (use [hash] instead)
```
Someone can help me please ?
Reply

Same issue here!

Reply

Also having the same issues. Anyone here to help out and tell what the cause of this error is?

Reply

i can resolve it like this.

added these lines.

config/webpack/development.js

const config = environment.toWebpackConfig();
config.output.filename = "js/[name]-[hash].js"

Reply

@KeisukeMizuno your fix happens to remove the error. Thanks.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 87,400+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.