sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.8k stars 105 forks source link

Error running with metro bundler #228

Open natew opened 2 years ago

natew commented 2 years ago

Seems like ow is trying to destructure default off import callsites here:

const callsites_1 = require("callsites");
console.log('callsites_1', callsites_1)
// logs out: callsites_1 [Function (anonymous)]

Causing this:

(0 , callsites_1.default) is not a function
    at ow (/Users/n8/github/tamagui-expo-example/node_modules/ow/dist/index.js:29:53)

An interopRequireDefault type compat layer would be helpful.