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
Cannot find module '@effector/patronum/macro' from '/home/runner/work/patronum/patronum/integration/cra/src'
Require stack:
src/App.js
src/App.test.js
However, Jest was able to find:
'./demo.test.ts'
'./demo.ts'
You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
I made a package with a
macro.cjs
file, that added topackage.json:exports
, please note package.json hastype: module
.Describe the bug
I got an error:
I checked up babel-plugin-macros has support for
.cjs
macros: https://github.com/kentcdodds/babel-plugin-macros/blob/master/src/index.js#L5Did you try recovering your dependencies?
Yep
Which terms did you search for in User Guide?
Environment
Steps to reproduce
Also, I made an integration test for CRA:
Expected behavior
CRA should load macro with .cjs extension from another package.
Actual behavior
Reproducible demo
https://github.com/effector/patronum/tree/main/integration/cra/src
https://github.com/effector/patronum/runs/3848203844
I can't change
.cjs
to.js
intype:module
, because module system will think it is ESModule in.js
file.But CRA doesn't allow me to import
macro.cjs
The text was updated successfully, but these errors were encountered: