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

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 ?

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

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.