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
There's no other issue that already describes my problem.
Describe the Bug
I try to implement jspdf into a custom-endpoint.
When trying to build the extension, rollup throws the following error:
Error: Invalid value for option "output.file" - when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.
This seems to indikate that the rollup-implementation as set up to package everything into a single file.
I digged arround a little bit into the script and found that there is the chance to create a extensions.config.js to pass data to rollup. But trying to force it to either use dir-mode instead of file-mode or allowing inlineDynamicImports does not seem to work as intendet as in it does not have any effect. But maybe I'm missing some part here in how to setup the extensions.config.js correctly to pass that information:
export default {
output: {
dir: './dist'
},
}
Maybe this is not per se a bug but a feature-request or asking for en enhancment of the docs in regards to the rollup-config.
To Reproduce
npm install jspdf
index.js: import { jsPDF } from "jspdf";
npm run build
Errors Shown
✖ Failed
Error: Invalid value for option "output.file" - when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.
[Error] https://rollupjs.org/guide/en/#outputdir
Error: Invalid value for option "output.file" - when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.
What version of Directus are you using?
What version of Node.js are you using?
14.7.0
What database are you using?
What browser are you using?
What operating system are you using?
Windows 10
How are you deploying Directus?
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Describe the Bug
I try to implement jspdf into a custom-endpoint.
When trying to build the extension, rollup throws the following error:
This seems to indikate that the rollup-implementation as set up to package everything into a single file.
I digged arround a little bit into the script and found that there is the chance to create a extensions.config.js to pass data to rollup. But trying to force it to either use dir-mode instead of file-mode or allowing inlineDynamicImports does not seem to work as intendet as in it does not have any effect. But maybe I'm missing some part here in how to setup the extensions.config.js correctly to pass that information:
Maybe this is not per se a bug but a feature-request or asking for en enhancment of the docs in regards to the rollup-config.
To Reproduce
npm install jspdf
index.js:
import { jsPDF } from "jspdf";
npm run build
Errors Shown
What version of Directus are you using?
What version of Node.js are you using?
14.7.0
What database are you using?
What browser are you using?
What operating system are you using?
Windows 10
How are you deploying Directus?
The text was updated successfully, but these errors were encountered: