(continued from
)
Hi, I'm trying to build this environment using my Mac development environment.
I've followed the instructions to install, and have used all defaults to create the "myplugin" plugin.
The json server starts correctly, as expected:
MacBook-Pro-10:myplugin-ui wodge$ json-server --watch db.json --static ./src/webapp
\{^_^}/ hi!
Loading db.json
Done
Resources
Home
Type s + enter at any time to create a snapshot of the database
Watching...
However, when I attempt to compile I get:
MacBook-Pro-10:myplugin-ui wodge$ npm start
> myplugin@0.9.2 start /Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui
> ng serve --port 4201 --proxy-config proxy.conf.json
** NG Live Development Server is running on http://localhost:4201 **
Hash: 1f53bfd0301c4e004f76
Time: 17774ms
chunk {0} main.bundle.js, main.bundle.js.map (main) 156 kB {3} [initial] [rendered]
chunk {1} scripts.bundle.js, scripts.bundle.js.map (scripts) 576 kB {4} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 396 kB {4} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.02 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in /Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (40,52): '=' expected.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (42,62): '=' expected.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (40,38): A parameter initializer is only allowed in a function or constructor implementation.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (40,46): Cannot find name 'keyof'.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (42,46): A parameter initializer is only allowed in a function or constructor implementation.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (42,56): Cannot find name 'keyof'.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (58,42): Cannot find name 'Partial'.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (99,22): Cannot find name 'Partial'.
/Users/wodge/runecast/WebClientPlugin/WebClientPlugin-Resources/plugin-seed-0.9.5/tools/myplugin-ui/node_modules/@types/jasmine/index.d.ts (99,35): Cannot find name 'Partial'.
webpack: Failed to compile.
Could you please advise how to resolve this issue?
N.B. I have also built the environment using a Windows OS, and have the same issue.
I've enclosed the "npm list" output with this post.
Many thanks