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
When the package.json has type set to module, shimmer is unable to wrap functions.
I don't see a way to monkey patch an ESM project. This may just be limitation of ESM.
Node: 16.19.0, 20.10.0
Error:
/Users/jthoms/dev/shimmer-debug/node_modules/shimmer/index.js:13
var enumerable = !!obj[name] && obj.propertyIsEnumerable(name)
^
TypeError: obj.propertyIsEnumerable is not a function
at defineProperty (/Users/jthoms/dev/shimmer-debug/node_modules/shimmer/index.js:13:39)
at Function.wrap (/Users/jthoms/dev/shimmer-debug/node_modules/shimmer/index.js:56:3)
at file:///Users/jthoms/dev/shimmer-debug/src/app.js:4:9
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)
When the package.json has
type
set tomodule
, shimmer is unable to wrap functions.I don't see a way to monkey patch an ESM project. This may just be limitation of ESM.
Node: 16.19.0, 20.10.0
Error:
package.json:
app.js
component.js
The text was updated successfully, but these errors were encountered: