-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Including Assets in Build doesn't work (regression) #26900
Comments
We are seeing the same issue in a production Next.js app built with nx after upgrading to nx version 19.4.2. Assets that were being copied into the build in /dist are now being omitted. The build is being built via Github Action on a runner using ubuntu-22.04. Strangely we cannot replicate the same problem when building locally on an M1 Mac. |
I confirm, the regression appears in version 19.4.0. |
Same here with 19.4.2 version |
Unfortunately my team encounters the same issue with |
#27337) <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior Assets are not copied to the dist folder after running @nx/next:build ## Expected Behavior Assets should be copied to the dist folder after @nx/next:build ## Related Issue(s) #26900 Fixes # Fix the order, and wrong number of parameters call to createWebpackConfig() --------- Co-authored-by: Nicholas Cunningham <ndcunningham@gmail.com>
The issue was fixed, we are now running |
Current Behavior
nrwl/nx 19.4.2
doesn't copy the assets specified explicitly in the app'sproject.json
per documentation Including Assets in Your Build.Expected Behavior
The assets listed in the "assets" section in the app's
project.json
should be copied to thedist
folder on build.GitHub Repo
No response
Steps to Reproduce
npx -y create-nx-workspace@19.4.2 --appName copyTest --preset next --e2eTestRunner none --style css --nextSrcDir test_nx_19.4.2 --nxCloud skip .
apps/copyTest/project.json
to contain the copy directives (per the documentation):test_nx_19.4.2$ ls -a dist/apps/copyTest/public/ . .. favicon.ico .gitkeep
(as show above, assets
readme.md
,src/
andexecutors.json
were not copied, which is a bug)Note: The same steps are followed with
nrwl/nx
version 18.3.5 (replace the command in step 1. withnpx -y create-nx-workspace@18.3.5 --appName copyTest --preset next --e2eTestRunner none --style css --nextSrcDir test-nx-18.3.5 --nxCloud skip .
. Version 18.3.5 copies at least thesrc/some.js
file (rules for filespath-to-my-project/readme.md
andpath-to-my-project/executors.json
has to be removed for the build to pass - but this is probably a different issue/bug or our misunderstanding of the documentation.Per the reproduction steps above, we believe there is a regression in
nrwl/nx
version 19.Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: