1

I receive an error only when trying to build in azure. Local ng build -- prod works fine.

Error: Module [path_to_file] has no static exports true

since this is for production I'm not wanting to --aot=false as found here.

I did run it using --aot=false and am getting the same error.

My build definition is correct as it had worked last week and hasn't been updated.

I'm assuming something has changed in the build that causes this problem.

In my package.json file I am using "@angular/cli": "^1.2.0" for my devDependency

Update:

Upgraded package.json Build cli devDependency is now "@angular/cli": "^1.3.0"

same error

Demodave
  • 6,242
  • 6
  • 43
  • 58

1 Answers1

1

So it finally built.

Here is what I did

  1. upgraded the package using these instructions using the npm-check-updates npm package

    a. npm i -g npm-check-updates

    b. npm-check-updates -u

    c. npm install

  2. Installed all the extra dependencies now required

  3. Upgraded to the latest angular

  4. ran 'ng build --prod' <-- without the --aot=false

Demodave
  • 6,242
  • 6
  • 43
  • 58