Comments (15)
Thanks for opening this issue! A maintainer will review it soon.
from million.
Hello there @Idrinth, do you think you can provide a reproduction that I can have a look at and then present to the team if need be. You shouldn't be getting the above error at all.
from million.
terribly sorry if the example was too big. will put some time aside to build a smaller one tomorroe
from million.
Hello there @Idrinth, do you think you can provide a reproduction that I can have a look at and then present to the team if need be. You shouldn't be getting the above error at all.
https://stackblitz.com/edit/vitejs-vite-azcm9h
from million.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
from million.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
That shouldn't be the case, issue is still unsolved to my knowledge.
from million.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
That shouldn't be the case, issue is still unsolved to my knowledge.
Hmm, thank you very much for this. Really appreciate this. Let me share this with the team. Sorry for the auto-labelling bot.
from million.
Taking a look at your reproduction now.
from million.
Ok, I fixed it @Idrinth; the issue isn't a Million issue at all. It's an issue with babel and vite I think. So, I did a bit of research around and found a fix:
https://stackblitz.com/edit/vitejs-vite-gm2ltv?file=vite.config.ts
from million.
Ok, I fixed it @Idrinth; the issue isn't a Million issue at all. It's an issue with babel and vite I think. So, I did a bit of research around and found a fix:
https://stackblitz.com/edit/vitejs-vite-gm2ltv?file=vite.config.ts
That is using the deprecated assert
instead of with
for the import. Can't replicate it working once I switch back to with
.
from million.
Ok, I fixed it @Idrinth; the issue isn't a Million issue at all. It's an issue with babel and vite I think. So, I did a bit of research around and found a fix:
https://stackblitz.com/edit/vitejs-vite-gm2ltv?file=vite.config.ts
That is using the deprecated
assert
instead ofwith
for the import. Can't replicate it working once I switch back towith
.
Oh yes, you are correct. However this issue has nothing to do with Million.
It still says the same thing when you remove Million from your codebase.
from million.
Ok, I fixed it @Idrinth; the issue isn't a Million issue at all. It's an issue with babel and vite I think. So, I did a bit of research around and found a fix:
https://stackblitz.com/edit/vitejs-vite-gm2ltv?file=vite.config.tsThat is using the deprecated
assert
instead ofwith
for the import. Can't replicate it working once I switch back towith
.Oh yes, you are correct. However this issue has nothing to do with Million.
It still says the same thing when you remove Million from your codebase.
In that case my small example is insufficient, will try to replicate the issue in something slightly bigger. My main project works without million and only breaks once adding it :(
from million.
more digging and it looks like there is no way on million's side to fix this. Will have to do some code replacements to byopass the vite issue I guess.
from million.
Yes @Idrinth, thank you very much π
from million.
Yes @Idrinth, thank you very much π
was easier than expected, actually just needed to switch to the babel plugin instead - that worked out fine.
from million.
Related Issues (20)
- Million Lint for WebStorm HOT 3
- Lost MiniCssExtractPlugin, do not parse scss files HOT 7
- Provide option to disable intro message in terminal HOT 4
- Error when installing: "ReadableStream is not defined" HOT 6
- Feedback for βInstallationβ - double up on items in right side bar HOT 5
- Breaks React-Dropzone after 3.0.0 update HOT 5
- π Tooling: Stop auto-closing not-actually-stale issues HOT 6
- Spreaded props are lost when combined with explicitly setted props HOT 3
- Error: Invalid hook call. Hooks can only be called inside of the body of a function component. HOT 3
- Lint never connects to VS code HOT 18
- Lint: Better Account Management HOT 3
- "Transforming vite.config.ts" doesn't actually transform anything HOT 3
- Does not work with `react-hook-form` in auto mode HOT 2
- svgs not rendering HOT 4
- Lint broken with Next.js URL rewrites - TypeError: prevRewrites is not iterable HOT 1
- Million lint build error when configuring using webpack (TypeError: Cannot read properties of undefined (reading 'anya')) HOT 3
- π Documentation: Typo in the docs while doing manual installation HOT 2
- React app build failing: `cause: SocketError: other side closed` HOT 2
- Doesn't correctly handle NextJS config function HOT 2
- Failed to lint. Please try again later. HOT 2
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 million.