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
tried to create a virtual module like descripted here: https://parceljs.org/plugin-system/resolver/#virtual-modules
as the documentation said, i have to return a filePath. so i did and the file does not exists, because it is a virtual module.
parcel complaining, that the file does not exists:
× Build failed.
Error: ENOENT: no such file or directory, open 'C:\Users\xxxx\foo.js'
This error only happens (at least for me, and I have run into this in past) if there is some error in the returned code. Then the logic to generate the codeframe tries to read from disk. E.g. with a syntax error
code: `export default "This is a special module!`,
🐛 bug report
tried to create a virtual module like descripted here: https://parceljs.org/plugin-system/resolver/#virtual-modules
as the documentation said, i have to return a
filePath
. so i did and the file does not exists, because it is a virtual module.parcel complaining, that the file does not exists:
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
the virtual module does not need a real file on the filesystem
😯 Current Behavior
Error: ENOENT: no such file or directory, open 'C:\Users\xxxx\foo.js'
💁 Possible Solution
🔦 Context
💻 Code Sample
🌍 Your Environment
The text was updated successfully, but these errors were encountered: