We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i migrations nx to 18.3.1 , when execute nx build xxx , my rollup config invalid。
nx build xxx success.
No response
"rollupConfig": "packages/common/rollup.config.cjs",
> nx run common:build:production rootPackagePath /Users/wmvm/code/me/wmvmjs/package.json Bundling common... Unknown output options: 0. Allowed options: amd, assetFileNames, banner, chunkFileNames, compact, dir, dynamicImportFunction, entryFileNames, esModule, exports, extend, externalLiveBindings, file, footer, format, freeze, generatedCode, globals, hoistTransitiveImports, indent, inlineDynamicImports, interop, intro, manualChunks, minifyInternalExports, name, namespaceToStringTag, noConflict, outro, paths, plugins, preferConst, preserveModules, preserveModulesRoot, sanitizeFileName, sourcemap, sourcemapBaseUrl, sourcemapExcludeSources, sourcemapFile, sourcemapPathTransform, strict, systemNullSetters, validate index.js 668.06 KB Error: You must specify "output.file" or "output.dir" for the build. at error (/Users/wmvm/code/me/wmvmjs/node_modules/rollup/dist/shared/rollup.js:198:30) at /Users/wmvm/code/me/wmvmjs/node_modules/rollup/dist/shared/rollup.js:23836:24 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async catchUnfinishedHookActions (/Users/wmvm/code/me/wmvmjs/node_modules/rollup/dist/shared/rollup.js:23247:20) at async rollupExecutor (/Users/wmvm/code/me/wmvmjs/node_modules/@nx/rollup/src/executors/rollup/rollup.impl.js:83:21) at async getLastValueFromAsyncIterableIterator (/Users/wmvm/code/me/wmvmjs/node_modules/nx/src/utils/async-iterator.js:13:19) at async iteratorToProcessStatusCode (/Users/wmvm/code/me/wmvmjs/node_modules/nx/src/command-line/run/run.js:43:29) at async handleErrors (/Users/wmvm/code/me/wmvmjs/node_modules/nx/src/utils/params.js:9:16) at async process.<anonymous> (/Users/wmvm/code/me/wmvmjs/node_modules/nx/bin/run-executor.js:59:28) Bundle failed: common
### Failure Logs _No response_ ### Package Manager Version _No response_ ### Operating System - [X] macOS - [ ] Linux - [ ] Windows - [ ] Other (Please specify) ### Additional Information _No response_
The text was updated successfully, but these errors were encountered:
Hi @wmvm0 This is due to use combining both formats (ESM and CJS) into a single pass in @nx/rollup:rollup. So the output property is now an array.
@nx/rollup:rollup
output
Here's an example of how to fix this in your project: https://github.com/jaysoo/rollup-nx18.3
Sorry, something went wrong.
jaysoo
No branches or pull requests
Current Behavior
i migrations nx to 18.3.1 , when execute nx build xxx , my rollup config invalid。
![image](https://private-user-images.githubusercontent.com/45738680/323419238-3418db37-33d2-4b54-bc59-eef0ea9e1db9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0MDU4NTksIm5iZiI6MTcxODQwNTU1OSwicGF0aCI6Ii80NTczODY4MC8zMjM0MTkyMzgtMzQxOGRiMzctMzNkMi00YjU0LWJjNTktZWVmMGVhOWUxZGI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE0VDIyNTIzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1YjAwODE0YWMzMThmMmI1ZDBiMWMyMTMzMmEyYzU4NDJmMmE0ZWM4MjZmZTQ0YWUzZjY5YjdlNzdmZDQzNzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-sXbQ4jlgbKP3DyDjLHgmF08bBACqeAL5nuqGh7Q9Z4)
Expected Behavior
nx build xxx success.
GitHub Repo
No response
Steps to Reproduce
project.json
Nx Report
The text was updated successfully, but these errors were encountered: