nodejs-langs icon indicating copy to clipboard operation
nodejs-langs copied to clipboard

Unable to import javascript file.

Open Afridi-haque7 opened this issue 3 years ago • 1 comments

Hello, I was unable to import the package in my javascript code, import {....} from 'langs' I don't know what to write in between the curly braces. Can you help me?

Afridi-haque7 avatar Feb 09 '22 19:02 Afridi-haque7

Here is my solution: import langs from 'langs' remember to add "type": "module" on your package.json

GeorgeCheng1023 avatar Feb 15 '22 13:02 GeorgeCheng1023