0

I'm trying to do a simple module export import in node.js.

Here's js.js:

let animal = "cat";

export {animal};

Here's js2.js:

import {animal} from './js.js';
console.log(animal);

This is my error message: enter image description here

This is where the files are located: enter image description here

0 Answers0