Reputation: 2341
Trying to use tippy.js
library on a brand new Rails 7
application with Propshaft
without webpack
or sprockets
, loading it via Importmap
and getting an error on the browser's inspector saying Uncaught ReferenceError: process is not defined
.
At the library's FAQ there is a related question but that will require using Gulp
or Rollup
which is not used at this project.
How can NODE_ENV
get through javascript stack at process.env.NODE_ENV
so the library can see it?
Upvotes: 1
Views: 166