Comments (3)
Hi @MrBartusek I'm not able to reproduce this locally. I added a hook to the example and pushed it to Github. It builds successfully in the CI environment too. https://github.com/TimMikeladze/tsup-react-package-starter/actions
I've seen this error before but in a specific case: I was using npm link
or yarn link
to include a package I was developing locally in a different React project.
If this is indeed the case for you, then I suggest using https://github.com/wclr/yalc to handle the package linking process. This workaround solved this error for me and furthermore improved my overall development workflow since I started using yalc
to manage my local packages.
As part of debugging I suggest you delete your node_modules and yarn.lock file and then running yarn
again.
from tsup-react-package-starter.
To be completely honest with you @TimMikeladze this single comment fixed all of the issues that I've been trying to resolve for a total of 18 hours (tracked by waketime). I've tried multiple tutorials, templates, webpack, babel, tsup, rollup and even some cursed stuff like build scripts or vite. The whole issue, as you have pointed out, was caused by links or other obscure importing methods. I've just published a package to npm and imported it straight from it, without messing with it locally. It works like a charm. Thank you so much, I can finally get some good sleep.
from tsup-react-package-starter.
@MrBartusek I am uplifted to hear that! I felt the same way when I stumbled upon a comment suggesting yalc
, everything just worked afterwards 😄.
In fact this comment made me realize that yalc
should be added into this starter kit. I will do that shortly.
Happy coding and glad I could help!
from tsup-react-package-starter.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsup-react-package-starter.