Skip to content

Bug in AOT mode with Angular 5 when using yarn: TypeScript compilation failed #8107

Closed

Description

@quanterion

Bug when using AOT with Angular 5

Versions.

Yarn: 1.2.1
Angular CLI: 1.5.0-rc.1
Node: 8.4.0
OS: win32 x64
Angular: 5.0.0-rc.3
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

angular/cli: 1.5.0-rc.1
angular-devkit/build-optimizer: 0.0.28
angular-devkit/core: 0.0.20
angular-devkit/schematics: 0.0.34
ngtools/json-schema: 1.1.0
schematics/angular: 0.0.46
typescript: 2.4.2
webpack: 3.7.1

Repro steps.

  1. ng set --global packageManager=yarn
  2. ng new myApp
  3. update package.json to Angular 5
  4. ng serve --aot

The log given by the failure.

ERROR in ./src/main.ts
Module build failed: Error: TypeScript compilation failed.
at plugin.done.then (X:\ng15y\node_modules@angular\cli\node_modules@ngtools\webpack\src\loader.js:479:27)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
ERROR in ./src/polyfills.ts
Module build failed: Error: TypeScript compilation failed.
at plugin.done.then (X:\ng15y\node_modules@angular\cli\node_modules@ngtools\webpack\src\loader.js:479:27)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ multi ./src/polyfills.ts
ERROR in

Mention any other details that might be useful.

I use yarn 1.2.1 to install dependencies. I couldn't reproduce this error in empty project with npm 5, but after installing libraries material-beta.12, covalent-beta.8-1 and angulartics-2.4.0 the same problem also appears.
Reverting project to Angular 4.4.5 fixes this issue in both cases.

Activity

  1. quanterion commented on Oct 19, 2017

    @quanterion
    Author
  2. changed the title [-]Bug in AOT mode with Angular 5: TypeScript compilation failed[/-] [+]Bug in AOT mode with Angular 5 when using yarn: TypeScript compilation failed[/+] on Oct 19, 2017
  3. quanterion commented on Oct 19, 2017

    @quanterion
    Author

    I have Angular-Cli installed via npm when I remove cli from npm and install via yarn it gives me more detailed error message when serving with ng serve --aot:

    ERROR in ./src/main.ts
    Module build failed: Error: TypeScript compilation failed.
    at plugin.done.then (X:\ng15\node_modules@angular\cli\node_modules@ngtools\webpack\src\loader.js:479:27)
    at
    at process._tickCallback (internal/process/next_tick.js:188:7)
    @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
    ERROR in ./src/polyfills.ts
    Module build failed: Error: TypeScript compilation failed.
    at plugin.done.then (X:\ng15\node_modules@angular\cli\node_modules@ngtools\webpack\src\loader.js:479:27)
    at
    at process._tickCallback (internal/process/next_tick.js:188:7)
    @ multi ./src/polyfills.ts
    ERROR in

    webpack: Failed to compile.
    X:\ng15\node_modules\typescript\lib\typescript.js:69795
    throw e;
    ^

    TypeError: Cannot read property 'length' of undefined
    at Object.unescapeIdentifier (X:\ng15\node_modules\typescript\lib\typescript.js:10550:26)
    at getTextOfNode (X:\ng15\node_modules\typescript\lib\typescript.js:68575:27)
    at emitIdentifier (X:\ng15\node_modules\typescript\lib\typescript.js:66931:19)
    at pipelineEmitUnspecified (X:\ng15\node_modules\typescript\lib\typescript.js:66594:28)
    at pipelineEmitWithHint (X:\ng15\node_modules\typescript\lib\typescript.js:66566:50)
    at pipelineEmitWithSourceMap (X:\ng15\node_modules\typescript\lib\typescript.js:66558:17)
    at emitNodeWithComments (X:\ng15\node_modules\typescript\lib\typescript.js:64200:17)
    at pipelineEmitWithComments (X:\ng15\node_modules\typescript\lib\typescript.js:66547:17)
    at pipelineEmitWithNotification (X:\ng15\node_modules\typescript\lib\typescript.js:66541:17)
    at emit (X:\ng15\node_modules\typescript\lib\typescript.js:66528:13)

  4. pschmoek commented on Oct 19, 2017

    @pschmoek

    Same here.
    It's because yarn fails to dedupe typescript:

    package.json

    {
      "dependencies": {
        "@angular/core": "5.0.0-rc.3",
        ...
      },
      "devDependencies": {
        "@angular/cli": "1.5.0-rc.1",
        "typescript": "~2.4.2",
        ...
      }
    }
    

    yarn.lock

    "typescript@>=2.0.0 <2.6.0", typescript@^2.3.3:
      version "2.5.3"
      resolved "URL"
    
    typescript@~2.4.2:
      version "2.4.2"
      resolved "URL"
    

    Using npm only 2.4.2 is used and build --prod --aot works fine.

  5. pschmoek commented on Oct 19, 2017

    @pschmoek

    ... tested with npm 3.10.10, dunno about 5. Tired of yarn bugs 😪

    edit:
    yarnpkg/yarn#3778
    So it's broken because @angular-devkit/build-optimizer has caret peerDependency (^2.3.3) which yarn does not dedupe.

  6. Matmo10 commented on Oct 19, 2017

    @Matmo10

    I'm experiencing the same error. This was happening on the 1.5.0 beta releases also, I just never filed an issue because I figured something was wrong on my end.

    yarn.lock has been my source of truth for awhile now, switching to npm scares me 😨

  7. csentis commented on Oct 20, 2017

    @csentis

    @Matmo10 same here, although npm‘s package lockfile seems tempting...

  8. devoto13 commented on Oct 20, 2017

    @devoto13
    Contributor

    It is not a Yarn bug anyhow. Hoisting is an implementation detail of the package manager (including Yarn) and if one wants to have single instance of some package, they should specify it as a peer dependency instead of a normal dependency. Expecting that package manager will always hoist it to the single instance is wrong.

    So the right fix here is probably to change @angular-devkit/build-optimizer's package.json to have typescript as a peer dependency instead of a normal dependency. And this will be correct requirement for a package manager and will ensure that dependency is present only once in the node_modules (which looks like the root cause of the exception).

    cc @filipesilva

    PS There were several fixes in Yarn around peer dependencies resolution (yarnpkg/yarn#4433 and yarnpkg/yarn#4539) in recent versions, so I would recommend to use >=1.2.1 which contains all of them .

  9. self-assigned this
    on Oct 20, 2017
  10. filipesilva commented on Oct 20, 2017

    @filipesilva
    Contributor

    We're aware of this problem but there actually is no non-breaking change that would fix it.

    It's not about the peer dependency on build-optimizer. Build optimizer doesn't need to use the same typescript as your project.

    It's about peer dependency that @ngtools/webpack has on typescript, and the fact that we use the same Angular CLI npm package for both global and local installs.

    @ngtools/webpack has a peer dependency on typescript to ensure it uses the project TS. But since we use the same global and local Angular CLI package, this is a problem. On your project, @ngtools/webpack wants to use the local typescript. But on the global install there is no project typescript.

    So to prevent peer dependency errors/warnings @angular/cli provides TS as well in its dependencies. And we rely on package manager hoisting to ensure the right dependency is provided.

    This is wrong because, as @devoto13 said, to hoist or not is an implementation detail of the package manager. The right way to do it is with peer dependencies.

    But we can't do that until we split the global and local CLI installs. And that's a breaking change. So that's where we stand right now. There may be a couple of hacks we do to try to sort this out for now but they are hacks.

  11. filipesilva commented on Oct 25, 2017

    @filipesilva
    Contributor

    Fixed by #8185

  12. Splaktar commented on Oct 26, 2017

    @Splaktar
    Contributor

    @filipesilva Thank you! I can indeed build now with the latest master, but I'm seeing the following warnings, are these expected or should another issue be raised?

    WARNING in ./node_modules/@angular/core/esm5/core.js
    6436:15-36 Critical dependency: the request of a dependency is an expression
        at ImportLazyContextDependency.getWarnings (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/dependencies/ContextDependency.js:39:18)
        at Compilation.reportDependencyErrorsAndWarnings (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:703:24)
        at Compilation.finish (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:561:9)
        at applyPluginsParallel.err (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compiler.js:506:17)
        at /Users/splaktar/Git/tf/webapp/node_modules/tapable/lib/Tapable.js:289:11
        at _addModuleChain (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:507:11)
        at processModuleDependencies.err (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:477:14)
        at _combinedTickCallback (internal/process/next_tick.js:73:7)
        at process._tickCallback (internal/process/next_tick.js:104:9)
     @ ./node_modules/@angular/core/esm5/core.js
     @ ./src/main.ts
     @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
    
    WARNING in ./node_modules/@angular/core/esm5/core.js
    6456:15-102 Critical dependency: the request of a dependency is an expression
        at ImportLazyContextDependency.getWarnings (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/dependencies/ContextDependency.js:39:18)
        at Compilation.reportDependencyErrorsAndWarnings (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:703:24)
        at Compilation.finish (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:561:9)
        at applyPluginsParallel.err (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compiler.js:506:17)
        at /Users/splaktar/Git/tf/webapp/node_modules/tapable/lib/Tapable.js:289:11
        at _addModuleChain (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:507:11)
        at processModuleDependencies.err (/Users/splaktar/Git/tf/webapp/node_modules/webpack/lib/Compilation.js:477:14)
        at _combinedTickCallback (internal/process/next_tick.js:73:7)
        at process._tickCallback (internal/process/next_tick.js:104:9)
     @ ./node_modules/@angular/core/esm5/core.js
     @ ./src/main.ts
     @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
    
  13. Splaktar commented on Oct 26, 2017

    @Splaktar
    Contributor

    While I can build, I can't run my Angular v5 app with the CLI code in master due to this error when loading the page in Chrome:

    TypeError: querystring.unescape is not a function
        at getFilenameFromUrl (/Users/splaktar/Git/tf/webapp/node_modules/webpack-dev-middleware/lib/GetFilenameFromUrl.js:33:21)
        at module.exports (/Users/splaktar/Git/tf/webapp/node_modules/webpack-dev-middleware/lib/GetFilenameFromUrl.js:62:9)
        at webpackDevMiddleware (/Users/splaktar/Git/tf/webapp/node_modules/webpack-dev-middleware/middleware.js:40:18)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:317:13)
        at /Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:284:7
        at Function.process_params (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:335:12)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:275:10)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:127:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at Server.setContentHeaders (/Users/splaktar/Git/tf/webapp/node_modules/webpack-dev-server/lib/Server.js:496:3)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:137:13)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at Route.dispatch (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:112:3)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at /Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:281:22
        at param (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:354:14)
        at param (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:365:14)
        at Function.process_params (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:410:3)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:275:10)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:127:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at Server.app.all (/Users/splaktar/Git/tf/webapp/node_modules/webpack-dev-server/lib/Server.js:77:47)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:137:13)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:131:14)
        at Route.dispatch (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/route.js:112:3)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at /Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:281:22
        at param (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:354:14)
        at param (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:365:14)
        at Function.process_params (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:410:3)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:275:10)
        at expressInit (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/middleware/init.js:40:5)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:317:13)
        at /Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:284:7
        at Function.process_params (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:335:12)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:275:10)
        at query (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/middleware/query.js:45:5)
        at Layer.handle [as handle_request] (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/layer.js:95:5)
        at trim_prefix (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:317:13)
        at /Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:284:7
        at Function.process_params (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:335:12)
        at next (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:275:10)
        at Function.handle (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/router/index.js:174:3)
        at EventEmitter.handle (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/application.js:174:10)
        at Server.app (/Users/splaktar/Git/tf/webapp/node_modules/express/lib/express.js:39:9)
        at Server.new_handler (/Users/splaktar/Git/tf/webapp/node_modules/sockjs/lib/utils.js:89:20)
        at emitTwo (events.js:106:13)
        at Server.emit (events.js:191:7)
        at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
        at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
    
    Angular CLI: 1.5.0-rc.3
    Node: 6.11.0
    OS: darwin x64
    Angular: 5.0.0-rc.5
    ... animations, common, compiler, compiler-cli, core, forms
    ... http, language-service, platform-browser
    ... platform-browser-dynamic, platform-server, router
    ... service-worker
    
    @angular/cdk: 2.0.0-beta.12
    @angular/cli: 1.5.0-rc.3
    @angular/flex-layout: 2.0.0-beta.9-99e7450
    @angular/material: 2.0.0-beta.12
    @angular-devkit/build-optimizer: 0.0.31
    @angular-devkit/core: 0.0.20
    @angular-devkit/schematics: 0.0.34
    @ngtools/json-schema: 1.1.0
    @ngtools/webpack: 1.8.0-rc.3
    @schematics/angular: 0.0.48
    typescript: 2.4.2
    webpack: 3.8.1
    
  14. blingerson commented on Nov 2, 2017

    @blingerson

    @Splaktar, were you able to fix that warning?

  15. Matmo10 commented on Nov 2, 2017

    @Matmo10

    @blingerson This is already fixed in the last release or 2 of 1.5.x

  16. Splaktar commented on Nov 2, 2017

    @Splaktar
    Contributor

    @blingerson yes, it's fixed in one of the RCs after 3. Working in the 1.5.0 release.

  17. ThalesMatoso commented on Nov 5, 2017

    @ThalesMatoso

    I still have this error here, how do I correct it?

    '' Critical dependency: the request of a dependency is an expression
         at ImportLazyContextDependency.getWarnings ''

  18. SFDanny commented on Nov 13, 2017

    @SFDanny

    @ThalesMatoso
    you might need this line into webpack.config.js

            new webpack.ContextReplacementPlugin(
                // The (\\|\/) piece accounts for path separators in *nix and Windows
                /angular(\\|\/)core(\\|\/)esm5/,
                path.resolve(__dirname, "app"), // location of your src
                {} // a map of your routes
            ),
    
  19. ThalesMatoso commented on Nov 15, 2017

    @ThalesMatoso

    @SFDanny thank you, but this is not resolve my problem, after search on much on web, i discovered that it was error on library ngx-mask.

    following on issue for more details.
    https://github.com/JsDaddy/ngx-mask/issues/49

  20. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  21. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions