In REPL.it https://repl.it/@aminya/x-terminal#rollup.config.js
Repository: https://github.com/aminya/x-terminal/tree/multientry
I could not reproduce it completely since the node version is 12. You need have 14.5.0, but here is the configuration:
https://repl.it/join/hgnuaflr-aminya~~
src/x-a.js, src/x-b.js → dist...
[!] Error: ENOENT: no such file or directory, open 'C:\project\x-a\dist\_rollup:plugin-multi-entry:entry-point.js.map'
Error: ENOENT: no such file or directory, open 'C:\prject\x-a\dist\_rollup:plugin-multi-entry:entry-point.js.map'
while dist folder exists
Bundling.
Unfortunately we'll need a complete reproduction to triage this for you. I'd suggest making a repo with instructions for which node version to use in the README
@shellscape Here is the branch for you to try:
In REPL.it https://repl.it/@aminya/x-terminal#rollup.config.js
Repository: https://github.com/aminya/x-terminal/tree/multientry
If you want the configuration without multi entry, try rollup branch
That's appreciated, but it doesn't fit the definition of minimal as mentioned in the issue template.
- Provide a minimal repository link (Read https://git.io/fNzHA for instructions).
These may take more time to triage than the other options.
Could you check the link again? I removed the not-needed folders so you can just see what is needed.
https://repl.it/@aminya/x-terminal#rollup.config.js
@aminya @shellscape I'm also using plugin-multi-entry and it's working without any issue but It's creating a dummy file in this path: build/_virtual/_rollup:plugin-multi-entry:entry-point and because this file name contains : in its name, my users on windows can't use my library because : character is not allowed in windows OS. We don't have any issues with Linux and Mac.
I think the issue is related to this line:
https://github.com/rollup/plugins/blob/825ef02252cd8fc64adf88473107d9d44404a2fb/packages/multi-entry/src/index.js#L5
Any plan to fix this? I think choosing : character as a separator in the file name is a bad decision as it's not supported on other OS.
@shellscape watch the comment above me there we have a example of a bug where we can not even use the repl to reproduce that as the : char is simply not supported on windows the repl does not give us a option for that we should talk about how to handle that.
I can confirm I'm having this same issue with plugin-multi-entry, again on a Windows OS (Win 10). On my private project, I included multi-entry for the intent of forcing certain files to be provided on the bundle entry point, but with my build/watch process, I end up with this error:
{
code: 'ERROR',
error: [Error: ENOENT: no such file or directory, open 'E:\Code\JSHell\repayne\static\js\_rollup:plugin-multi-entry:entry-point.js.map'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'E:\\Code\\JSHell\\repayne\\static\\js\\_rollup:plugin-multi-entry:entry-point.js.map'
}
}
EDIT: Rollup is able to generate the bundles to be dynamically imported, but the entry file is missing from the generated output. Perhaps there should be a way to override the entry point filename?
Related issue: https://github.com/rollup/plugins/issues/95
@aminya @shellscape I'm also using
plugin-multi-entryand it's working without any issue but It's creating a dummy file in this path:build/_virtual/_rollup:plugin-multi-entry:entry-pointand because this file name contains:in its name, my users on windows can't use my library because:character is not allowed in windows OS. We don't have any issues with Linux and Mac.
I think the issue is related to this line:
https://github.com/rollup/plugins/blob/825ef02252cd8fc64adf88473107d9d44404a2fb/packages/multi-entry/src/index.js#L5Any plan to fix this? I think choosing
:character as a separator in the file name is a bad decision as it's not supported on other OS.
Thank you! I am very happy that you found the reason! Now, I am sure they can fix it.
@frank-dspeed
You don't have to use Repl for this. There are many number of VM machines available that can help.
Now that the reason is found, we, the windows users, may be able to fix it
@aminya the repl thing is a general thing here it is a internal none related discussion between me and @shellscape :)
@frank-dspeed I made a pull request. Check it out. You can use U+A789 instead of the Colon in Windows. But the name of the final bundle is now _rollup꞉plugin-multi-entry꞉entry-point.js. Is this the desired behavior?
Fixed by #520
The multi-entry plugin still creates a file with : character like this: _virtual\_virtual:multi-entry.js so just file name changed but still we have redundant : character there.
I described more in the related PR: https://github.com/rollup/plugins/pull/520
@shellscape So please reopen this issue until an actual fix. :pray:
@cyclops24 the right way to track this is with a new issue.
Most helpful comment
Thank you! I am very happy that you found the reason! Now, I am sure they can fix it.
@frank-dspeed
You don't have to use Repl for this. There are many number of VM machines available that can help.
Now that the reason is found, we, the windows users, may be able to fix it