Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

useExperimentalClosure leads to error in prod mode #1198

@yupengfei

Description

@yupengfei

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

useExperimentalClosure in prod mode leads to

Uncaught Error: Cannot mix multi providers and regular providers, got: [object Object] [object Object]

error in prod mode

What behavior are you expecting?

when use

"build": "ionic-app-scripts build --rollup ./config/rollup.config.js --experimentalPurgeDecorators true --useExperimentalClosure true ",    

everything goes well

but after add --prod, the page went error.

Steps to reproduce:

  1. ionic start demo tabs

  2. modify the package.json,

"build": "ionic-app-scripts build --rollup ./config/rollup.config.js --experimentalPurgeDecorators true --useExperimentalClosure true --prod",

  1. open the browser, and error show in console.
insert any relevant code between the above and below backticks

Which @ionic/app-scripts version are you using?

2.1.4

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

main.js:948 Uncaught Error: Cannot mix multi providers and regular providers, got: [object Object] [object Object]
at Function.b.resolve (main.js:948)
at Function.b.rB (main.js:949)
at main.js:797
at main.js:797
at main.js:1458
at main.js:1458

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions