react-ace icon indicating copy to clipboard operation
react-ace copied to clipboard

Jest Test Case

Open hanoj-budime opened this issue 3 years ago • 2 comments

Problem

image

Detail the problem here, including any possible solutions.

Sample code to reproduce your issue

References

Progress on: #

hanoj-budime avatar Sep 28 '22 07:09 hanoj-budime

H have same issue I get this

 console.error
    Unable to infer path to ace from script src, use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes or with webpack use ace/webpack-resolver

And when I import import 'ace-builds/webpack-resolver' it gives me same error as the above. How to I solve this?

sagaravesha avatar Mar 21 '23 07:03 sagaravesha

If you are using webpack 5 or newer, try using import 'ace-builds/esm-resolver'

nightwing avatar Mar 21 '23 10:03 nightwing