preline icon indicating copy to clipboard operation
preline copied to clipboard

Having Issues Installing with Rails 7 ESbuild

Open spacerobotTR opened this issue 3 years ago • 1 comments

I get an error that says ActionController::RoutingError (No route matches [GET] "/node_modules/preline/dist/hs-ui.bundle.js"):

Using Rails 7 here is my tailwind config:

module.exports = {
  plugins: [
   require('preline/plugin')
 ],
  content: [
    './app/views/**/*.html.erb',
    './app/helpers/**/*.rb',
    './app/assets/stylesheets/**/*.css',
    './app/javascript/**/*.js'
  ]
}

Any ideas on how to get this working?

spacerobotTR avatar Jun 17 '22 04:06 spacerobotTR

Hi, @spacerobotTR -

It looks like we missed including the following code in the README file:

content: [
  'node_modules/preline/distance/*.js'
]

This is how your tailwind.config.js file should look like:

module.exports = {
  content: [
    'node_modules/preline/dist/*.js'
  ],
  plugins: [
    require('preline/plugin')
  ],
}

Also, we have just updated our README file.

Thanks!

Mr-Zafar avatar Jun 23 '22 11:06 Mr-Zafar