Anyone know what the error message "Plugin TypeError: r is not a function" is about

#1
Plugin TypeError: r is not a function
    at Object.execScenegraphEdit (plugins/ScenegraphGuard.js:1:3285)
    at BaseCommand._invokePluginCommand [as _commandFn] (plugins/PluginLoader.js:1:3296)
    at BaseCommand.execute (lib/BaseCommand.js:1:929)
    at Commands._execute (lib/Commands.js:1:1915)
    at Commands.executeAsGesture (lib/Commands.js:1:2064)

Just if anything rings a bell. I’ll describe how to reproduce it if not.

#2

This might be a sign of an incorrect parameter to a scenegraph API. Can you share repro steps?

#3

I’ll do that, just need to clean up the code a bit =)

#4

So, to reproduce:

git clone git@github.com:eklem/designing-with-search-data.git
cd designing-with-search-data
npm install

Add var indexedDB to ./node_modules/level-js/index.js like this:

/* global indexedDB */

'use strict'

var indexedDB
module.exports = Level

Back to console

npx webpack-cli --devtool false --mode development XD-webpackable.js -o XD-webpacked.js
cp -r ../designing-with-search-data <XD plugin develop folder>

Basically two commands repeated. Outside any function (runs when plugin is loaded), and inside PopulateWithSearch. The first one gets to index the documents and do a search, but not populate a repeater grid, and the second one (menu choice) errors like above.

#5

I’m guessing something in the code I’ve webpacked is not compatible with the SceneGraph?