Closed rebeccapeltz closed 2 years ago
I figured it out. I just needed to npm init
and the npm install
. To get around using require in typescript, I declared it as a function declare function require(name:string);
For people who might encounter this issue like me, use the CommJS version of node-fetch
npm i node-fetch@2
The extension currently didn't support ESM yet
I'm trying out the basic Rich Outputs example. I can't get past the node-fetch import. Running this command
import * as fetch from 'node-fetch'
gives me the error below.My node_modules are installed. My node and npm versions are > required. Can you help me troubleshoot this?