Code Monkey home page Code Monkey logo

Comments (8)

amrbashir avatar amrbashir commented on June 9, 2024

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.

Jagholin avatar Jagholin commented on June 9, 2024

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.

amrbashir avatar amrbashir commented on June 9, 2024

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.

Jagholin avatar Jagholin commented on June 9, 2024

Ok, I've tried 2 project types:
react with JavaScript
vue with TypeScript

both run well(see screenshot from vue template)
grafik

from create-tauri-app.

Jagholin avatar Jagholin commented on June 9, 2024

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.

Jagholin avatar Jagholin commented on June 9, 2024

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.

Jagholin avatar Jagholin commented on June 9, 2024

huh appears to be vite bug vitejs/vite#10802

from create-tauri-app.

amrbashir avatar amrbashir commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.