Skip to content

Angular-cli serve and build in production doesn't work #9003

@vforv

Description

@vforv

Getting this error:

Uncaught Error: No NgModule metadata found for 'function (){}'.
    at e.resolve (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e.getNgModuleMetadata (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e._loadModules (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e._compileModuleAndComponents (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e.compileModuleAsync (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e.compileModuleAsync (main.1dbec60982a3a45e41ef.bundle.js:1)
    at e.LMZF.e.bootstrapModule (main.1dbec60982a3a45e41ef.bundle.js:1)
    at Object.cDNt (main.1dbec60982a3a45e41ef.bundle.js:1)
    at o (inline.5cae597ddde847d4cf3a.bundle.js:1)
    at Object.0 (main.1dbec60982a3a45e41ef.bundle.js:1)
e.resolve @ main.1dbec60982a3a45e41ef.bundle.js:1
e.getNgModuleMetadata @ main.1dbec60982a3a45e41ef.bundle.js:1
e._loadModules @ main.1dbec60982a3a45e41ef.bundle.js:1
e._compileModuleAndComponents @ main.1dbec60982a3a45e41ef.bundle.js:1
e.compileModuleAsync @ main.1dbec60982a3a45e41ef.bundle.js:1
e.compileModuleAsync @ main.1dbec60982a3a45e41ef.bundle.js:1
LMZF.e.bootstrapModule @ main.1dbec60982a3a45e41ef.bundle.js:1
cDNt @ main.1dbec60982a3a45e41ef.bundle.js:1
o @ inline.5cae597ddde847d4cf3a.bundle.js:1
0 @ main.1dbec60982a3a45e41ef.bundle.js:1
o @ inline.5cae597ddde847d4cf3a.bundle.js:1
window.webpackJsonp @ inline.5cae597ddde847d4cf3a.bundle.js:1
(anonymous) @ main.1dbec60982a3a45e41ef.bundle.js:1

What can be a problem? Everything works fine if I don't add Universal,,,
Also when will ng serve be supported for server lot of time is passed still no support for universal....

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentneeds: investigationRequires some digging to determine if action is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions