Comments (8)
Can't seem to reproduce the issue. The problem is in building the front-end, try removing node_modules
and clearing the global npm cache. Also try running npm run dev
and open it in the browser and see if anything is wrong.
from create-tauri-app.
did both (npm cache clean --force
and removing node_modules
with package-lock.json
), no effect.
npm run dev
also shows empty page in the browser with the same error in the devtools console.
from create-tauri-app.
well, this is a problem with the bundler (vite) and I am not yet able to reproduce it and seems very specific to your machine. can you try npm create vite@latest
, choose a template and run it in the browser?
from create-tauri-app.
Ok, I've tried 2 project types:
react with JavaScript
vue with TypeScript
both run well(see screenshot from vue template)
from create-tauri-app.
Huh now tauri seems to work too... I guess the only thing thats different is npm create vite@latest
somehow seems to fix stuff...
I guess i close this issue
from create-tauri-app.
I'm reopening this issue due to some new information.
So a bit of background - I have a HDD and a SSD on my pc. SSD is the smaller one (~500gb) so I only use it for Windows and some frequently-used big programs. Most of the Users folder like documents downloads etc. are on the HDD, except for one thing - some folders are placed physically on SSD but are linked using NTFS junctions with a folder in HDD. One of these special folders is where I usually place rust projects - due to how much drive access is used during compilation I like the boost that placing this folder on SSD gives me. So the whole thing looks something like this:
C: <- this is SSD
| -- accelerate_linked
| | -- rust
| | -- .cargo, .rustup are also here
D: <- this is HDD
| -- Users/UserName directory
| | -- rust -> links to C:\accelerate_linked\rust
| | -- webdev - just a normal folder
| | -- documents and other stuff
so let us see what happens shall we? this is the experiment:
1. cd to D:\Users\rust directory.
2. run cargo create-tauri-app
3. select something like package manager: npm, project type: react-ts
4. cd into the project directory
5. npm install && npm run tauri dev
result: blank window.
6. take the project folder and copy it somewhere else (d:\Users\webdev)
7. cd into the copied folder
8. npm run tauri dev (!!)
result: everything works
9. cd into C:\accelerate_linked\rust\project folder
10. npm run tauri dev
result: everything is fine
So this appears to be a bug, right?... the question is only where
from create-tauri-app.
huh appears to be vite bug vitejs/vite#10802
from create-tauri-app.
thanks for taking the time to track this down. gonna close this issue and hopefully the vite team will fix it soon.
from create-tauri-app.
Related Issues (20)
- .primitives in create tauri-app --alpha HOT 1
- [bug] tauri app with angular - missing script: "start--"
- Tauri installation process allowing package.json name to include illegal characters
- create-tauri-app produces malformed angular.json config
- [feat] update angular template to 17
- Cant use create-tauri-app due to error. HOT 3
- Not a directory (os error 20) HOT 2
- Vanilla Rust frontend option generates javascript file instead of rust file HOT 1
- Vite 5 in fragments
- (v2 alpha) Recent API rename breaks (Vue) templates
- leptos template warning
- tauri android init internal error: entered unreachable code: `abs_src` and `abs_dest` have no common root HOT 2
- Wrong path for distDir in templates HOT 5
- `create tauri-app --beta` does not initialise a working project HOT 1
- npm create tauri-app@latest returns SyntaxError: Unexpected token . HOT 2
- [bug] create-tauri-app seems incorrectly sets package.productName to . when project name is set to . (current dir)
- All the templates should include tests HOT 1
- TS + Solid creates the error `Cannot find module './assets/logo.svg'`
- `vite.config.ts` fails typecheck if uses standard modules like `path` and `fs` HOT 1
- Ever thought about adding another js build tool HOT 1
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 create-tauri-app.