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
{{ message }}
Repository navigation
Error when try to use .mjs babel.config.mjs file #953
Current behavior:
I am converting my project's config from .js to .mjs and I'm getting the following error:
Cannot change caching after evaluation has completed.
Expected/desired behavior:
Expect to be able to just replace .js extension with .mjs and everything to work as before (with changing imports/exports to mjs)
So my babel configuration file is now named babel.config.mjs
export default function(api) {
// any attempt to use anything here from api fails with the following message:
// Cannot change caching after evaluation has completed.
// return usual things
}
Webpack configuration is pretty standard (.js extension) but the concerning block is like this:
Activity
nicolo-ribaudo commentedon Sep 23, 2022
Can you share a repository that shows the bug? 🙏
sotiristherobot commentedon Sep 23, 2022
Unfortunately this is not in my own github account so sharing is not possible (company's internal private repo).
tofrankie commentedon Mar 11, 2025
👀