Matt Long
Joined
Activity
Posted in Setup MacOS 11.0 Big Sur Discussion
Hey Chris. Having issues with installing on an M1 MBP. I can get bundler to finish successfully, however, when I go to run rails s it fails with '.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/ffi-1.13.1/lib/ffi/types.rb:69:in `find_type': unable to resolve type 'size_t' (TypeError)'. From what I can tell it's because ffi needs to be updated. Do you know of a way to work around it for now?
I'm trying to follow the instructions from this video for a different library, simplemde. I'm not very clear on how to use the variable as you called it in the application.js file:
import simplemde from "simplemde"
require("simplemde/dist/simplemde.min.css")
document.addEventListener("turbolinks:load", () => {
simplemde() // <- Not sure how to use this
})
When I just call simplemde()
at that point, I get:
Uncaught TypeError: Cannot set property 'options' of undefined
at SimpleMDE (simplemde.js:1417)
at HTMLDocument. (application.js:26)
at Object../node_modules/turbolinks/dist/turbolinks.js.e.dispatch (turbolinks.js:75)
at r.notifyApplicationAfterPageLoad (turbolinks.js:994)
at r.pageLoaded (turbolinks.js:948)
at turbolinks.js:872in the Javascript console.
How can I determine what it's expecting?
Just instantiating a new SimpleMDE object doesn't work either:
document.addEventListener("turbolinks:load", () => {
var smde = new SimpleMDE()
})
Uncaught ReferenceError: SimpleMDE is not defined
at HTMLDocument. (application.js:26)
at Object../node_modules/turbolinks/dist/turbolinks.js.e.dispatch (turbolinks.js:75)
at r.notifyApplicationAfterPageLoad (turbolinks.js:994)
at r.pageLoaded (turbolinks.js:948)
at turbolinks.js:872
Thanks