Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

(low) [export 'ɵɵdefineInjectable' was not found in '@angular/core] #289

Open
2 tasks done
sandrakaminska opened this issue Jan 6, 2021 · 3 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@sandrakaminska
Copy link

sandrakaminska commented Jan 6, 2021

Prerequisites

  • Are you running the latest version? OR Are you submitting a bug for a prior version?
  • Did you perform a basic issue search?

Description

I want to use the @vcd/ui-components library to create components in my angular project for vCD v. 10.0.x extension (plug-in). I use Angular 6.1.0 and Clarity 0.13.11 (https://blogs.vmware.com/cloudprovider/2020/02/cloud-director-plugin-dev-env.html).

Which version of @vcd/ui-components I should use in my project? I try the latest so it is 0.0.24.
When serve the app in console there is the warning:
WARNING in /node_modules/@vcd/ui-components/fesm5/vcd-ui-components.js 1138:50-68
"export 'ɵɵdefineInjectable' was not found in '@angular/core'
In library package.json:
"peerDependencies": {
"@angular/common": ">6.0.0",
"@angular/core": ">6.0.0",
"@vcd/i18n": "0.0.8",
"tslib": "^1.10.0"
},

in browser I have the error and I can't properly run the app.
Uncaught (in promise): TypeError: Object(...) is not a function
TypeError: Object(...) is not a function
at vcd-ui-components.js:1138
at Module.../../node_modules/@vcd/ui-components/fesm5/vcd-ui-components.js (vcd-ui-components.js:1140)

Impact

Please help me use your components in my application

Versions

Angular CLI: v7.3.10
Node: v10.13.0
Angular: v6.1.0
NPM: v6.4.1

@sandrakaminska sandrakaminska added the bug Something isn't working label Jan 6, 2021
@juanmendes juanmendes self-assigned this Jan 7, 2021
@sandrakaminska sandrakaminska changed the title (impact: low) [export 'ɵɵdefineInjectable' was not found in '@angular/core] (low) [export 'ɵɵdefineInjectable' was not found in '@angular/core] Jan 7, 2021
@ps37
Copy link
Contributor

ps37 commented Feb 17, 2021

Hello @petitewoman,
We don't support VCD versions of 10.0.X as our components library package does not work with the Angular and Clarity versions being used in those releases. You can try VCD version 10.1.X.

@sandrakaminska
Copy link
Author

Hi @ps37
If I could, I would use this version :)

Where can I find information about a supported VCD version?

Thank you for your response.

@ryan-bradford
Copy link
Contributor

Hi @ska-it , we are in the process of updating our read me with our official versioning strategy. Here's the guidelines that we have so far:
For VCD 10.2, you should use @vcd/[email protected].
For VCD 10.3, you should use @vcd/[email protected], although @1.x should continue to work.

The error you are getting is likely because you are running an older version of Angular than what we support.

@vcd/[email protected] is known to support >=Angular@9 and >=Clarity@3.
@vcd/[email protected] is known to support >=Angular@10 and >=Clarity@4

It's possible older versions might work, but this is what we promise to support.

Let me know if you need any help setting anything up.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants