You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
❯ yarn build
yarn run v1.10.1
$ webpack --mode production
/Users/eli/code/project/node_modules/webpack-cli/bin/cli.js:244
throw err;
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
If you re-specify the entry, it works as expected:
For a single entry-point project I would expect the html options to be set via html in the web preset options instead (since the mains options are meant as overrides). However I can see this still being an issue when eg multi-entrypoint and the first page wants a custom template but the others are using the global default via the html preset option.
@eliperelman what's the expected behaviour here? A more user-friendly error saying "must specify source" or special-casing index and merging the source value in there too? The former would also help the case where someone lists additional mains that are missing their source, whereas the latter would only help for index.
eliperelman
changed the title
Cannot override entry entry template without also specifying the path to the entry again
Cannot override main entry template without also specifying the path to the entry again
Nov 26, 2018
With the Neutrino 9 beta, if you try overriding the template, you will get an exception:
If you re-specify the entry, it works as expected:
The text was updated successfully, but these errors were encountered: