I’m having an odd issue with importing npm modules and would appreciate some guidance from people who know better. Before Meteor properly supported npm, the solution was to use
Npm.require('libname'). Now that the support is in there, we’re supposed to just use
require 'libname or
import Lib from 'libname'.
However, there are a few npm packages where that fails. Our app uses
quickbase. When we bring in those libraries via
require, we get weird errors that all go away when we drop back to using
quickbase says we need to
"use strict";, which seems like an ES5 issue we shouldn’t be having, while
googleapis allegedly can’t be found in
Our build system is mildly atypical because we’re using
meteorcom:webpack (successor to
webpack:webpack), not sure if that has anything to do with it.
Any ideas from the community? I never really understood what sort of magic
Npm.require was doing under the hood, but it looks like it’s still occasionally necessary even though Meteor allegedly doesn’t need it anymore. Is there a good GitHub repo for me to leave this as an issue?