Rails 6 With Framework7 Using Webpacker
Using Rails 6 and Framework7. I created a new Rails app with Rails: rails new xyz Then I ran: yarn add framework7 I see Framework7 installed in node_modules/framework7. Then I made
Solution 1:
I solved this by changing:
# app/javascript/packs/application.js
import '../stylesheets/application'require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")
import 'framework7/js/framework7.bundle.min'
to
# app/javascript/packs/application.js
import '../stylesheets/application'require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")
import Framework7 from 'framework7/js/framework7.bundle.min'
window.Framework7 = Framework7
Post a Comment for "Rails 6 With Framework7 Using Webpacker"