Production environment library method does not exist
See original GitHub issueDescribe the bug
Production environment htmldiff execute function is undefined
Reproduction
https://stackblitz.com/edit/vitejs-vite-pisuhy?file=main.js
System Info
null
Used Package Manager
pnpm
Logs
$ vite build
$ cd dist
$ pnpx live-server
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:8
Top Results From Across the Web
Configuration 'production' could not be found in project 'my-lib'
It is present for the application project only. the following is what I have under the build configuration for library project that uses...
Read more >Libraries in development repository vs. production repository
Update: I have just done some testing; I deployed a development process, which references a library in the development repository, to production. Amazingly,...
Read more >Understanding runtime environments - IBM
Read-only runtime libraries that the configuration process does not alter and that are shareable between systems. These libraries physically exist in a full ......
Read more >What is a Production Environment? - PagerDuty
It's where the developers are writing their code, making code updates, and where all their commits and branches exist. The development environment does...
Read more >Troubleshoot form issues in model-driven apps - Microsoft Learn
Most of the tools are available in all the production environments. Some of them mentioned in the article might not have been deployed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this can only be used as an emergency measure, which should be handled by the plug-in to keep the dev and pro environments consistent
The workaround that I did for this issue was to do something like:
But it feels a little bit tricky. So I hope you can solve this problem soon.