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 am a newbee with fetch-mock, using jest for a React code, on typescript (targetting ESNext). I am getting the following error, which I do not understand:
/home/user/Documents/project/node_modules/node-fetch/src/index.js:9
import http from 'node:http';
^^^^^^
SyntaxError: Cannot use import statement outside a module
I have followed the advise for jest for typescript, using babel and so... but I cannot get this to work. Any idea on what might be wrong?
The text was updated successfully, but these errors were encountered:
I am a newbee with fetch-mock, using jest for a React code, on typescript (targetting ESNext). I am getting the following error, which I do not understand:
I have followed the advise for jest for typescript, using babel and so... but I cannot get this to work. Any idea on what might be wrong?
The text was updated successfully, but these errors were encountered: