Netlify site name: angular-universal.netlify.app
When building using the netlify-plugin-angular-universal (GitHub - netlify/netlify-plugin-angular-universal: Supports Angular Universal on Netlify! (in beta)) i’m getting the following error:
1:01:56 PM:
1:01:56 PM: ────────────────────────────────────────────────────────────────
1:01:56 PM: Plugin "@netlify/plugin-angular-universal" failed
1:01:56 PM: ────────────────────────────────────────────────────────────────
1:01:56 PM:
1:01:56 PM: Error message
1:01:56 PM: Error: No value defined for projectName. Check plugin inputs in netlify.toml.
1:01:56 PM:
1:01:56 PM: Plugin details
1:01:56 PM: Package: @netlify/plugin-angular-universal
1:01:56 PM: Version: 1.0.1
1:01:56 PM: Repository: git+https://github.com/netlify/netlify-plugin-angular-universal.git
1:01:56 PM: npm link: https://www.npmjs.com/package/@netlify/plugin-angular-universal
1:01:56 PM: Report issues: https://github.com/netlify/netlify-plugin-angular-universal/issues
1:01:56 PM:
1:01:56 PM: Error location
1:01:56 PM: In "onPreBuild" event in "@netlify/plugin-angular-universal" from netlify.toml and package.json
1:01:56 PM: at updateAngularJson (/node_modules/@netlify/plugin-angular-universal/src/helpers/updateAngularJson.js:8:12)
1:01:56 PM: at onPreBuild (/node_modules/@netlify/plugin-angular-universal/src/index.js:23:5)
1:01:56 PM:
1:01:56 PM: Resolved config
1:01:56 PM: build:
1:01:56 PM: command: ng build --configuration production && ng run angular-universal:serverless:production
1:01:56 PM: commandOrigin: config
1:01:56 PM: publish: /opt/build/repo/dist/angular-universal/browser
1:01:56 PM: publishOrigin: config
1:01:56 PM: plugins:
1:01:56 PM: - inputs: {}
1:01:56 PM: origin: config
1:01:56 PM: package: '@netlify/plugin-angular-universal'
Which suggests to me that I need to pass projectName
to the package,
so I’ve updated my netlify.toml
to:
[build]
command = "ng build --configuration production && ng run angular-universal:serverless:production"
publish = "dist/angular-universal/browser"
[[plugins]]
package = "@netlify/plugin-angular-universal"
[plugins.inputs]
projectName = "angular-universal"
and now i’m getting this error:
──────────────────────────────────────────────────────────────────────────
Plugin "@netlify/plugin-angular-universal" invalid input "projectName"
──────────────────────────────────────────────────────────────────────────
Error message
Plugin "@netlify/plugin-angular-universal" does not accept any inputs but you specified: "projectName"
Check your plugin configuration to be sure that:
- the input name is spelled correctly
- the input is included in the plugin's available configuration options
- the plugin's input requirements have not changed
Plugin inputs
projectName: angular-universal
Should I be supplying this differently?