skip to Main Content

nodejs+puppeteer in docker: Unexpected Identifier on import statement

I'm trying to run an application that requires puppeteer in a docker container and I get the following error when I run the docker container /usr/src/app/index.js:1 import puppeteer from 'puppeteer'; ^^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)…

VIEW QUESTION
Back To Top
Search