-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't use a local copy of primeng locally. #15460
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Comments
Correction: Adding the following to the main project's
Note that I am NOT using inject calls outside the allowed places, and the same code works with primeng version 17.16.0 downloaded from the official npm source. |
Effin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
There is a module resolution error when using a local copy of the primeng repository. I suspect it has something to do with the tsconfig.json include path configured for the primeng library, I tried copying over the declaration correcting the path to no avail.
Environment
Angular 17 project using a local copy of the primeng source code
Reproducer
No response
Angular version
17
PrimeNG version
master
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
18
Browser(s)
n/a
Steps to reproduce the behavior
[email protected]:primefaces/primeng.git
Expected behavior
Compiles.
Actual behaviour:
/src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.ButtonModule to symbol
./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: Cannot resolve type entity i2.ButtonModule to symbol
Error: ../../primeng/dist/api/contextmenuservice.d.ts:1:26 - error TS2307: Cannot find module 'primeng/ts-helpers' or its corresponding type declarations.
1 import { Nullable } from 'primeng/ts-helpers';
~~~~~~~~~~~~~~~~~~~~
Error: ../../primeng/dist/button/button.d.ts:2:31 - error TS2307: Cannot find module 'primeng/api' or its corresponding type declarations.
2 import { PrimeTemplate } from 'primeng/api';
~~~~~~~~~~~~~
Error: ../../primeng/dist/button/button.d.ts:5:21 - error TS2307: Cannot find module 'primeng/ripple' or its corresponding type declarations.
5 import * as i2 from "primeng/ripple";
~~~~~~~~~~~~~~~~
and so on.
The text was updated successfully, but these errors were encountered: