Skip to content

[Bug] Doesn't work with angular application builder/ vite? #155

@wbtan7

Description

@wbtan7

Ngx-CookieConsent Version

v8.0.0.0

CookieConsent Version

v3.1.1

Angular CLI (or Nx CLI) Version

19.2.1

Node Version

v20.10.0

OS Version

wsl2 ubuntu

Expected Behaviour

Able to build/serve successfully with angular application builder.

Actual Behaviour

Does ngx-cookieconsent works with angular 19 application builder/ vite? I got the following error

[vite] Internal server error: Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
  Plugin: vite:import-analysis

  File: 
  15850|  }(window.cookieconsent || {});
  15851|  
  15852|  

Steps to reproduce the behaviour

  1. Run with latest angular 19
  2. Migrate to application builder with npx ng update @angular/cli --name use-application-builder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions