cross browser platform support for Windows (You must supply `options.input` to rollup error)
thescientist13 opened this issue Β· comments
I noticed that while testing my project on a Windows machine, I was getting errors from Rollup due to missing options.input
.
$ npm run build
> rollup-multi-input-windows@1.0.0 build C:\Users\IEUser\Workspace\rollup-multi-input-windows
> rollup -c rollup.config.js
inputPath => C:\Users\IEUser\Workspace\rollup-multi-input-windows\src\**\*.js
C:\Users\IEUser\Workspace\rollup-multi-input-windows\src\**\*.js β public...
[!] Error: You must supply options.input to rollup
Error: You must supply options.input to rollup
at Graph.generateModuleGraph (C:\Users\IEUser\Workspace\rollup-multi-input-windows\node_modules\rollup\dist\shared\rollup.js:18900:19)
at async Graph.build (C:\Users\IEUser\Workspace\rollup-multi-input-windows\node_modules\rollup\dist\shared\rollup.js:18864:9)
at async rollupInternal (C:\Users\IEUser\Workspace\rollup-multi-input-windows\node_modules\rollup\dist\shared\rollup.js:19939:9)
at async build (C:\Users\IEUser\Workspace\rollup-multi-input-windows\node_modules\rollup\dist\bin\rollup:1464:20)
at async runRollup (C:\Users\IEUser\Workspace\rollup-multi-input-windows\node_modules\rollup\dist\bin\rollup:1645:21)
I did some debugging in this plugin and was able to distill it down to path separators in conjunction with fast-glob's own recommendations.
From there, back in my main project I then received (and resolved) a Rollup issue related to invalid substitutions that came up as a result (which also seems related to reports in this issue: #15 (comment))
Error: Invalid substitution "..\.greenwood\index" for placeholder "[name]" in "output.entryFileNames" pattern, can be neither absolute nor relative path.
The linked repo provides a full break down of the issue with minimal reproduction, and solution with a sample of the final code in the /bak folder. I just forked this repo now and will be working on submitting a PR soon.
Thanks and let me know if you have any thoughts! π
π This issue has been resolved in version 1.3.1 π
The release is available on:
Your semantic-release bot π¦π
Thanks! Looking forward to trying this release out later on today. π
Thanks, everything is working! π―
It's still happening for me on Windows WSL
export default {
input: ['src/core/themes/*.theme.ts'],
output: {
format: 'cjs',
dir: 'build/themes/*.theme.js',
},
plugins: [multi()],
};
src/core/themes/*.theme.ts β build/themes/*.theme.js...
[!] Error: You must supply options.input to rollup