Skip to content

CSS doesn't seem to apply #2

Open
@dails08

Description

@dails08

While the npm command installs the package and it seems to import with no problems in the ts file of a component, the CSS rules do not seem to apply to the component at render time. This happens whether or not options variables are included in the ts file.

image

Steps to reproduce the behavior:

  1. Create new angular project: npm init; ng new projectName; npm install --save @ngu/jsoneditor
  2. Import JsonEditorComponent from '@ngu/jsoneditor'; add
  3. ng serve
  4. localhost:4200

Expected behavior
A json editor that looks like the screenshots on the various websites

Console and Error stack trace
image

Desktop (please complete the following information):

  • OS: Windows 11 Pro
  • Browser: Firefox 129.0.2 (64-bit)
  • Ng Version [run ng version and paste here]
    Angular CLI: 17.3.9
    Node: 20.10.0
    Package Manager: npm 10.2.3
    OS: win32 x64

Angular: 17.3.12
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1703.9
@angular-devkit/build-angular 17.3.9
@angular-devkit/core 17.3.9
@angular-devkit/schematics 17.3.9
@angular/cli 17.3.9
@schematics/angular 17.3.9
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions