New Discussion

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 ....

4
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 ?

Same issue here!

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

i can resolve it like this.

added these lines.

config/webpack/development.js

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

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

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.