Open octogonz opened 3 years ago
Without a Webpack configuration,
heft start
behaves essentially likeheft build --watch
.
This is by design. The thought was that "start" for a non-web project is to run the TS compiler in watch mode.
You think we should print an error if someone tries to run heft start
for a project that doesn't appear (to heft) to be a web project?
Possibly the answer here is to ensure that the last line of the output reflects that it is watching for changes and running whatever task?
We just started using rush
and heft
, thanks for the great tools!
The difference between heft start
and heft build --watch
for a Node.js project wasn't immediately obvious to us but we came to the conclusion that there was no difference, or so it seems? Google'ing for this behavior drove us to this issue.
If we understood correctly, perhaps this behavior should be highlighted in the documentation and/or shown in the console when running the command. Cheers.
Summary
To understand this problem, try these repro steps:
Repro steps
webpack.config.js
file got mispelled accidentally aswepack.config.js
(as actually happened today!)Expected result:
When I run
heft start
, some kind of error should occur.Actual result:
When I run
heft start
, Heft displays this output:...and then it just sits there doing nothing. We don't see the usual localhost URL. Webpack doesn't seem to be running at all. Is it stuck? There is no error message, so it's rather confusing how to troubleshoot this mistake (if you didn't realize that your filename was misspelled).
Details
Without a Webpack configuration,
heft start
behaves essentially likeheft build --watch
. You could argue that it is a useful behavior. But it is highly confusing for users.Standard questions
Please answer these questions to help us investigate your issue more quickly:
@rushstack/heft
version?node -v
)?CC @akashkpuri