Alright! I’m about ready to throw in the towel! I’ve now been looking to do this, what some developers might think is trivial, and just can’t get anything to work, for several days.
As a first step in my project, I made a nice demo table using the Tabulator library, but for some reason I am not able to get it into my MMM JS module. As soon as I think I’m starting to understand something I’m bombed out by weird errors!
For example, I installed the jquery, jquery-ui
and tabulator
libraries with
npm install xxxx --save
as instructed on those pages. That means that I have the node_modules
directory in my MMM directory.
Now, trivially trying to import the various JS and CSS library files fails in the browser with:
The resource from ... node_modules ... was blocked due to MIME type mismatch (X-Content-Type-Options: nosniff)
Here you can find my Tabulator MMM demo called MMM-Tabulator. In that repo you will find a nicely working HTML/JS file: demo.html
.
How can I get that to work in the MMM-Tabulator.js
?