On 7/26/23 7:36 AM, 张志豪 wrote:
> At last, after marshalling all the resources, the project was
> successfully launched! Indeed, this appears to be a seemingly naive
> question; I should probably delve more into it before asking.
To be clear, the Bluebird error isn't something you should've had to
fix. That would just mean there was something wrong with your
node_modules folder, possibly from running `npm install` with an earlier
version of Node. I'd guess that deleting node_modules and running `npm
i` again would've fixed it.
> Additionally, during development, is it necessary to rebuild after
> each code modification, waiting for several minutes? Is there a more
> efficient method for hot updates?
It doesn't take minutes. Running `build_and_run -r` takes ~11 seconds to
rebuild on my computer.
Pass `-b` if you're not doing anything related to styles or translators.
If you're making UI changes, pass `-d` and experiment using the dev
tools first.
We have an update planned to allow hot-reloading of certain changes, but
it's not yet available, and it would only work for certain kinds of
things. In most cases, a restart is necessary.
- Dan