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

build not create #43

Open
ErNisha4800 opened this issue Mar 1, 2024 · 5 comments
Open

build not create #43

ErNisha4800 opened this issue Mar 1, 2024 · 5 comments

Comments

@ErNisha4800
Copy link

i have create build use npm run build command but not working any idea build file successfully working

@simonguest
Copy link
Owner

Hi @ErNisha4800 - can you share the error message you are getting?

@ErNisha4800
Copy link
Author

build file is done but not show exe application create two folder dist and .parcel-cache

npm run build

[email protected] build
rm -rf ./dist && rm -rf ./.parcel-cache && npx parcel build --public-url '.' index.html
'rm' is not recognized as an internal or external command,
operable program or batch file.

@simonguest
Copy link
Owner

It looks like you are on a Windows machine, and not running under WSL (Windows Subsystem for Linux).

A couple of options:

  1. Install WSL: https://learn.microsoft.com/en-us/windows/wsl/install
  2. Just run npx parcel build --public-url '.' index.html instead of npm run build. This will still run the parcel build (although it won't clean up the directories).

@ErNisha4800
Copy link
Author

ErNisha4800 commented Mar 5, 2024

This command is try already

npx parcel build --public-url '.' index.html
✨ Built in 6.97s

dist\index.html 2.5 KB 68.84s
dist\RobotoMono-VariableFont_wght.d253a266.ttf 177.9 KB 29.98s
dist\logo.85c4afc1.svg 5.05 KB 66.89s
dist\upload.9ca0346b.svg 325 B 66.89s
dist\drag.f08018c0.svg 1001 B 66.89s
dist\index.e87fef9f.css 9.53 KB 29.99s
dist\restart.a14a3877.svg 468 B 66.89s
dist\toggle_on.0d0ca82b.svg 416 B 66.90s
dist\toggle_off.c1469258.svg 414 B 66.90s
dist\fullscreen.d53ede56.svg 202 B 66.90s
dist\vr.a808a8dc.svg 743 B 66.90s
dist\debug.052b56a0.svg 701 B 66.90s
dist\media.3f3ca70d.svg 342 B 66.90s
dist\delete.cef9850f.svg 275 B 66.90s
dist\download.030d8fba.svg 232 B 66.90s
dist\help.b1bb460c.svg 419 B 66.90s
dist\index.ecbbedc1.js ⚠️ 7.27 MB 130.5
dist folder in open index
ss
inspect error
1

Thankyou for reply me

@simonguest
Copy link
Owner

It looks like you are trying to open the index.html file locally, which will not work due to CORS policy.

Instead, run the server using this command:

npx parcel serve index.html -p 55000

Once the server is running, browse to http://localhost:55000 (make sure this is http and not https) - and this should work.

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