Skip to content
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

Fix: Cannot npm link primereact on local project #6619

Merged
merged 1 commit into from
May 13, 2024

Conversation

Tubbbe
Copy link
Contributor

@Tubbbe Tubbbe commented May 13, 2024

Defect Fixes

Fix #6620: following the DEVELOPMENT.MD documentation, I couldn't import the modules into another React project. In addition, warnings were sometimes given that certain variables would be undefined in the Gulp script (not always reproduced).
I therefore modified the way variables are set in Windows bash (cmd), and moved a command so that it wouldn't block the execution of subsequent commands, enabling styles and templates to be generated in the dist/resources folder, and also generating the components' .json package.

Without the fix :
primereact_cannot-import-module

Generated dist folder :
image

With the fix :
primereact_bug-fix
primereact_localhost

Generated dist folder :
image

To be tested to be sure of the fix, for me it works every time on a Windows and a Linux :)

Copy link

vercel bot commented May 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primereact ⬜️ Ignored (Inspect) Visit Preview May 13, 2024 4:54pm
primereact-v9 ⬜️ Ignored (Inspect) Visit Preview May 13, 2024 4:54pm

Copy link

Thanks a lot for your contribution! But, PR does not seem to be linked to any issues. Please manually link to an issue or mention it in the description using #<issue_id>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Issue or pull request is related to Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot npm link primereact on local project
2 participants