You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then just as a test I've added a button to the template :
<buttonmat-button>Click me!</button>
I get an error when I try to start the server after a "build:prod" :
/Volumes/Secondary/git/xxxx/dist/server.js:198766
module.exports = ../../node_modules/@angular/material/button/typings/index.ngfactory;
^
SyntaxError: Unexpected token .
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
Any idea what's going on here please ?
The text was updated successfully, but these errors were encountered:
It appears that the node file is generated without the relative path to the factories without being a string, after a few more issues i decided to use this fork: https://github.com/malikov917/angular-universal-seed/
It's working on my current project.
Hello guys,
I'm trying to implement Material to the seed (angular/material and angular/cdk)
I've added the following module to app.module.ts :
Then just as a test I've added a button to the template :
I get an error when I try to start the server after a "build:prod" :
Any idea what's going on here please ?
The text was updated successfully, but these errors were encountered: