0

Подключаю библиотеку puppeteer, в meteor приложении.

const puppeteer = require('puppeteer');

Появляются ошибки в консоли

packages/modules.js:22730                     
let asyncawait = true;
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Версия node js v8.12.0 Версия meteor 1.4.3.2

Из-за чего это может быть и как это поправить?


Если вставить строку с кодом

const puppeteer = require('puppeteer');

В файле meteor приложения то генерируются такие ошибки:

packages/modules.js:22730 let asyncawait = true; ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at Object.exports.runInThisContext (vm.js:53:16) at /home/manking/Документы/it/inetpub/OLAP/svo/.meteor/local/build/programs/server/boot.js:297:30 at Array.forEach (native) at Function..each..forEach (/home/manking/.meteor/packages/meteor-tool/.1.4.3_2.nlnfuo.2znz++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11) at /home/manking/Документы/it/inetpub/OLAP/svo/.meteor/local/build/programs/server/boot.js:128:5 at /home/manking/Документы/it/inetpub/OLAP/svo/.meteor/local/build/programs/server/boot.js:352:5 at Function.run (/home/manking/Документы/it/inetpub/OLAP/svo/.meteor/local/build/programs/server/profile.js:510:12) at /home/manking/Документы/it/inetpub/OLAP/svo/.meteor/local/build/programs/server/boot.js:351:11 Exited with code: 1 Your application is crashing. Waiting for file change.

manking
  • 6,393

0 Answers0