Giter Site home page Giter Site logo

Comments (15)

nobkd avatar nobkd commented on August 23, 2024 1

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.

daliweiwei avatar daliweiwei commented on August 23, 2024 1

I deleted the. dist directory and rerun nue, and found that this issue has been resolved. Thank you

from nue.

vai avatar vai commented on August 23, 2024 1

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.

nobkd avatar nobkd commented on August 23, 2024

Will switch to windows and check this later today / tomorrow

create-nue repo: https://github.com/nuejs/create-nue

from nue.

daliweiwei avatar daliweiwei commented on August 23, 2024

Thank you very much

from nue.

daliweiwei avatar daliweiwei commented on August 23, 2024

Thank you for your reply. I will continue to monitor this issue

from nue.

nobkd avatar nobkd commented on August 23, 2024

@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.

daliweiwei avatar daliweiwei commented on August 23, 2024

@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

image

from nue.

daliweiwei avatar daliweiwei commented on August 23, 2024

Of course, this also takes us one step closer to success

from nue.

nobkd avatar nobkd commented on August 23, 2024

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.

nobkd avatar nobkd commented on August 23, 2024

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.

daliweiwei avatar daliweiwei commented on August 23, 2024

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

image
image

from nue.

nobkd avatar nobkd commented on August 23, 2024

Have you already tried deleting the .dist directory and re-running nue?

from nue.

vai avatar vai commented on August 23, 2024

Can't run the project using default instructions from the docs yet.

from nue.

nobkd avatar nobkd commented on August 23, 2024

@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)

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.