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

Doesn't work with solidjs/vite #263

Open
kamiljano opened this issue Dec 3, 2024 · 1 comment
Open

Doesn't work with solidjs/vite #263

kamiljano opened this issue Dec 3, 2024 · 1 comment

Comments

@kamiljano
Copy link

The library makes multiple references to "process". This is not available in the browser. I understand that so far it has been solved with polyfills, but there are no clear instructions on how to handle it in vite - the default build system for SolidJS

@rickstaa
Copy link

rickstaa commented Dec 13, 2024

@kamiljano I'm experiencing the same issue with integrating this package into a Vite application. Despite following @sujit-baniya's solution from this GitHub issue, I couldn't resolve my configuration problems.

I managed to get the package working in the development environment, but running npm run build leads to either CommonJS import errors or polyfill-related issues. My setup is more complex because I'm using this package within a library that is then imported into a Vite application.

Steps to Reproduce

  1. Clone the repository: tsup-lib-vite-demo-example.
  2. Install the parent library dependencies.
  3. Build the parent library.
  4. Navigate to the demo folder.
  5. Run npm run dev — the application works as expected.
  6. Run npm run build && npm run preview — the application fails due to CommonJS import or polyfill issues.

Any guidance or configuration tips would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants