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
Assets are not served when running the target serve command #9421
Comments
I'm running nx version 13.8.8 and having the same issue. If I run the "build" command, the assets show up in the dist folder as expected. But when I run with the "serve" command, they are not served up. |
after that warning started to appear we have troubles with generating source maps |
@AdaskoTheBeAsT, what you are referring to should be part of a separate ticket. Here the focus is on the problem with the static Assets not being served/copied. |
ok sorry |
No problem ;) |
I've figured out the culprit. This has been changed from how it worked before. |
Same problem here, fixed by switching the project from |
That is not really a fix, but a total replacement of the solution. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I have just updated to v13.9.2, and started seeing this problem.
The application starts saying there are no problems, however, no assets are being copied or served, and thus, when the application starts, it reports that it cannot load those assets like translation files, mockServiceWorker.js and similar.
Expected Behavior
This is a regression, as it has worked before without any code change.
The application should build and run without errors and the assets should be served properly.
My project.json file:
Also, when running target build, I can see the files that are being copied, but there's a Warning.
Even when I run it with the
set NODE_EVN=development && nx build bd-certificates --verbose
command.Similar issue #9253
Environment
Node : 16.14.0
OS : win32 x64
yarn : 3.0.2
nx : 13.9.2
@nrwl/angular : undefined
@nrwl/cypress : 13.9.2
@nrwl/detox : undefined
@nrwl/devkit : 13.9.2
@nrwl/eslint-plugin-nx : 13.9.2
@nrwl/express : undefined
@nrwl/jest : 13.9.2
@nrwl/js : 13.9.2
@nrwl/linter : 13.9.2
@nrwl/nest : undefined
@nrwl/next : undefined
@nrwl/node : undefined
@nrwl/nx-cloud : undefined
@nrwl/nx-plugin : undefined
@nrwl/react : 13.9.2
@nrwl/react-native : undefined
@nrwl/schematics : 8.12.11
@nrwl/storybook : 13.9.2
@nrwl/web : 13.9.2
@nrwl/workspace : 13.9.2
typescript : 4.3.5
rxjs : 6.6.7
The text was updated successfully, but these errors were encountered: