Write nock demo script
s3 · write_file migrateChange the import to use the default export, which is the typical fix when a CommonJS require returns a module object instead of the function.
Sources
- Fix the 'is not a function' error in JavaScript
Common causes are a library that did not load, an import that returned a module object instead of its function, or another script that replaced `$`. Fix how that value is loaded or referenced rather than hiding the error with a type check.