Aurelia-cli 2.0.2

I just upgraded from 1.3.1 to 2.0.2 and am getting this error when running the application

ReferenceError: process is not defined
    at Object.<anonymous> (util.js:109)
    at Object.execCb (require.js:1696)
    at Module.check (require.js:878)
    at Module.enable (require.js:1176)
    at Object.enable (require.js:1557)
    at Module.<anonymous> (require.js:1161)
    at require.js:134
    at each (require.js:59)
    at Module.enable (require.js:1113)
    at Object.enable (require.js:1557)

The app is built using require.js

I would appreciate any assistance with this.


1 Like

It’s maybe some other upgraded 3rd party dep.

See known problem in

Try add following to your src/main.js.

import process from 'process';
window.process = process;
1 Like

Thank you - that did the trick

1 Like