1

I am creating a project using create-react-app where my components make use of third party library. That third party library contains javascript files built using require js. When I am tring to use that library in creat-react-app it's throwing the following error :

Expected imports instead of AMD define()  import/no-amd

Line 1:1: 'define' is not defined

Help me out in using requirejs files in create-react-app.

I also went through this link but didn't find solution

3
  • A library that still doesn't provide a CJS or ES6 module version is a library you might want to avoid... Commented Nov 18, 2019 at 21:52
  • @ThiefMaster I tried it loading webpack but got the following error:FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory Commented Nov 18, 2019 at 21:54
  • @ThiefMaster, can this be helpful link Commented Nov 19, 2019 at 4:56

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.