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
I'm using file-type ^19.0.0, I have a line in my file import { fileTypeFromBuffer } from 'file-type' that causes this error when I run jest over this file.
` ({"Object.":function(module,exports,require,__dirname,__filename,jest){import * as strtok3 from 'strtok3';
^^^^^^
SyntaxError: Cannot use import statement outside a module`
I'm using file-type
^19.0.0
, I have a line in my fileimport { fileTypeFromBuffer } from 'file-type'
that causes this error when I run jest over this file.` ({"Object.":function(module,exports,require,__dirname,__filename,jest){import * as strtok3 from 'strtok3';
^^^^^^
Here's an identical issue on Stack Overflow from a year ago https://stackoverflow.com/questions/74917081/jest-error-while-trying-to-use-with-the-file-type-module-how-can-i-fix-cannot
The text was updated successfully, but these errors were encountered: