You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an AMD/CommonJS context, this makes sense (to make the custom tap event available to the component):
require('ractive-events-tap');
But ractive-load will look for Ractive.load.modules['ractive-events-tap'], and then window['ractive-events-tap'], and then (having found neither) throw an error.
A workaround is to do Ractive.load.modules['ractive-events-tap'] = Ractive.events.tap, but that sucks.
Options:
Disregard any dependencies that match the pattern /^ractive-/. Ractive will print a warning when it tries to use the plugin and finds it missing.
Don't throw an error, just carry on. Would make debugging harder in other situations (e.g. if you did THREE = require('three'), you wouldn't realise that for modules with a name/exports mismatch, you need to alias them with Ractive.load.modules.three = THREE;
The text was updated successfully, but these errors were encountered:
In an AMD/CommonJS context, this makes sense (to make the custom tap event available to the component):
But ractive-load will look for
Ractive.load.modules['ractive-events-tap']
, and thenwindow['ractive-events-tap']
, and then (having found neither) throw an error.A workaround is to do
Ractive.load.modules['ractive-events-tap'] = Ractive.events.tap
, but that sucks.Options:
/^ractive-/
. Ractive will print a warning when it tries to use the plugin and finds it missing.THREE = require('three')
, you wouldn't realise that for modules with a name/exports mismatch, you need to alias them withRactive.load.modules.three = THREE;
The text was updated successfully, but these errors were encountered: