question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to set project defaults in 6.0.0-rc.5

See original GitHub issue

Trying to update to angular 6, and I’m running into a couple issues while trying to set default behaviors on the project. Any help would be greatly appreciated!

Versions

Angular CLI: 6.0.0-rc.5
Node: 8.10.0
OS: darwin x64
Angular: 6.0.0-rc.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.5.7
@angular-devkit/build-angular     0.5.7
@angular-devkit/build-optimizer   0.5.7
@angular-devkit/core              0.5.7
@angular-devkit/schematics        0.5.7
@angular/cli                      6.0.0-rc.5
@ngtools/json-schema              1.1.0
@ngtools/webpack                  6.0.0-rc.5
@schematics/angular               0.5.7
@schematics/update                0.5.7
rxjs                              6.0.0-turbo-rc.4
typescript                        2.7.2
webpack                           4.5.0

Repro steps

  • Try to set project defaults
  "defaults": {
    "styleExt": "scss",
    "serve": {
      "port": 4203
    }
  }

Observed behavior

Adding defaults property to angular.json throws error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(defaults)

Desired behavior

Copied over from angular json from previous version.

  • Project should run on 4203
  • scss should be the default style extension

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
t8gcommented, May 11, 2018

in angular.json

        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "formation:build",
            "port": 5001
          },
0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2019 Not Showing .NET 6 Framework
I've installed .NET 6.0.0-rc.2.21480.5. which is verified through dotnet --version. Enabled "Use previews of the .NET Core SDK ...
Read more >
XCode Project Settings unable to show - Apple Developer
Hello there,. after the initial setup of my c++ project that included playing around with build setting etc. I did not touch the...
Read more >
Cannot find how to get to this "Project Defaults" section "in the ...
I have tried both with and without a solution loaded. I have poked around all over the place. I can't even find any...
Read more >
Gradle 6.0-rc-1 Release Notes
We publish Gradle Module Metadata by default, which makes these new features available between projects and binary dependencies. In the JVM ecosystem, we've ......
Read more >
Unable to evaluate in Blazor Wasm · Issue #19942 - GitHub
Create a new client side Blazor app, set a breakpoint, debug. ... Depending on your project type and settings, a different version of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found