Node_modules folder in app folder

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?

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