Node_modules folder in app folder


#1

Hello all,

I am creating a plataform through nodejs packages, all right so far but when I try to run the application I get the following message: ParseError: ‘import’ and ‘export’ may Appear only with ‘SourceType: module’.

I created a file package.json in the / app and through npm install packages matter, however, as is a standard nodejs they come in node_modules folder and apparently generates the error.

Has anyone ever experienced this?


#2

could you explain a bit more on what you’re trying to do? Im a little loss