OfficeDev / microsoft-teams-sample-complete-node

A template for building complex bots for Microsoft Teams - Node.JS version
MIT License
127 stars 65 forks source link

Running "Launch Emulator" gives "ReferenceError: primordials is not defined" #74

Open hornta opened 4 years ago

hornta commented 4 years ago

Just cloned this repo, ran npm i and tried to launch emulator with this output:

> Executing task: npm run -s build <

fs.js:27
const { Math, Object } = primordials;
                         ^

ReferenceError: primordials is not defined
    at fs.js:27:26
    at req_ (C:\Users\hornta\Documents\GitHub\tjelvar\node_modules\natives\index.js:143:24)
    at Object.req [as require] (C:\Users\hornta\Documents\GitHub\tjelvar\node_modules\natives\index.js:55:10)      
    at Object.<anonymous> (C:\Users\hornta\Documents\GitHub\tjelvar\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
    at Module._compile (internal/modules/cjs/loader.js:936:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    at Module.load (internal/modules/cjs/loader.js:790:32)
    at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    at Module.require (internal/modules/cjs/loader.js:830:19)
    at require (internal/modules/cjs/helpers.js:68:18)
The terminal process terminated with exit code: 1
hornta commented 4 years ago

Seems to work with node 11. I was running node 12