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
Describe the bug
Our monorepo contains TS files. Babel plugin expects the required/imported files to exist when it is being used. However, we don't run the "build" command, therefore we don't have transpiled JS files.
The actual error message in our case looks like this:
/Users/<username>/atlassian/afm/<path>/notification-component.tsx: Cannot find module '@atlaskit/tokens' from '/Users/<username>/atlassian/afm/<project>/node_modules/@compiled/babel-plugin/dist/utils'
To Reproduce
Steps to reproduce the behavior:
TS Monorepo without built JS files
Unit tests using "babel-jest"
@compiled/babel-plugin in babel.config.json
Expected behavior
No error
The text was updated successfully, but these errors were encountered:
Looks like there's a solution: using a "resolver" option for the plugin which hasn't been documented yet. I will try to build a sample resolver and see if it works for us.
Describe the bug
Our monorepo contains TS files. Babel plugin expects the required/imported files to exist when it is being used. However, we don't run the "build" command, therefore we don't have transpiled JS files.
The actual error message in our case looks like this:
To Reproduce
Steps to reproduce the behavior:
@compiled/babel-plugin
in babel.config.jsonExpected behavior
No error
The text was updated successfully, but these errors were encountered: