Comments (15)
It seems like a bun for windows problem, because when using node it works. On Linux, both work just fine for me.
Windows:
It does not work, when you have bun installed, and use npm create nue@latest
, because of the env statement at the beginning of the cli.js
. But when you run node <path to cli.js>
, it works fine.
So the general problem seems to lie with bun on Windows...
I will look into it further.
Edit:
Those issues might be related, even though they were for Unix systems:
Will check this over the weekend / when I find the time.
from nue.
I deleted the. dist directory and rerun nue, and found that this issue has been resolved. Thank you
from nue.
No worries. It worked from within WSL (although not on /mnt/c/
, use a wsl based path), just also meant a note to others that bump into it, that it's still open till your merge of #239 / related.
from nue.
Will switch to windows and check this later today / tomorrow
create-nue repo: https://github.com/nuejs/create-nue
from nue.
Thank you very much
from nue.
Thank you for your reply. I will continue to monitor this issue
from nue.
@daliweiwei can you check, if you can select different template projects with Bun v1.1.5? I have checked it on my windows vm's and this issue, as well as other visual issues, seem to be fixed by the latest update.
Currently, you will still encounter a path error on copying the template files, that should get fixed by nuejs/create-nue@86034d2
(There still seems to be a different issue, currently, that nue
(kit) won't build the files/run the dev server on Windows...)
from nue.
@nobkd Yes, I upgraded bun to 1.1.5 and fixed template errors according to the instructions.
I also encountered the same problem, nue (kit) does not build files/run development servers on Windows
from nue.
Of course, this also takes us one step closer to success
from nue.
Good to hear that this works now.
The issue, that nuekit does not build the files on windows is also already resolved with #239 but not released yet. (also see #253)
from nue.
Closing this, as this issue seems to be resolved.
Feel free to reopen or comment on this, if you have further problems or encounter this issue (again).
from nue.
I modified my local nuekit based on the reference and it was indeed successfully launched.
But I also discovered a new problem. I created a project based on simple crm, and after I successfully started running, I found that the files in the corresponding img directory did not seem to be packaged and output to the corresponding packaging directory/ Under dist/dev
from nue.
Have you already tried deleting the .dist
directory and re-running nue?
from nue.
Can't run the project using default instructions from the docs yet.
from nue.
@vai
If you are on Windows, you're probably experiencing issues with create-nue
(check the code section of this pr: nuejs/create-nue#43) or with the nue
command from nuekit
-package which has been fixed (check the code section: #239) but no release has happened after the merge. :(
If you want to, you can do those fixes yourself, e.g. by installing create-nue
globally and replacing the lines by hand. The same goes for nuekit
, though I personally would install it locally in your project and then cahnge it in the node_modules
, because you will see the installed packages and probably not try to update nue
instead of nuekit
later on.
Good luck.
If you still experience issues, feel free to ping me or open a new issue / discussion
from nue.
Related Issues (20)
- Update CLI help message to represent current options HOT 1
- Custom JSX/TSX components HOT 2
- Syntax error HOT 1
- The path of the route is expected to support regular expressions HOT 1
- component at layout.html compile error HOT 3
- When '{}' or',' in html , How to escape? HOT 2
- It can not start the server with nuekit 0.5.3, but works with nue 0.4.3 HOT 6
- auto generate manifest.json file
- a bug in the nuecli root HOT 5
- unmounted() Why is it not executed?
- Reactive values are not updated? why? HOT 3
- Page router doesn't mount components. Refresh needed to properly mount. HOT 2
- "draw_sections: true" results in nested sections HOT 5
- When iterating collections: can we render the markdown content of an item? HOT 5
- three-tiered directory structure layout HOT 3
- Add default`text` property to default `data` object available to page layouts. HOT 1
- SPA demo not working when deploy on subpath of domain HOT 1
- Nuemark: How to add svg inside a button HOT 2
- New website shaping up 🎉 HOT 6
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 nue.