Replies: 4 comments 2 replies
-
Moved to a discussion as we generally don't document integration with every possible build tool/environment in our website. |
Beta Was this translation helpful? Give feedback.
-
Could you provide some more context about the sorts of problems you're seeing? We don't generally use |
Beta Was this translation helpful? Give feedback.
-
@gethinwebster Thank you. The issue is the code editor component requires extra steps to make the ace object and documentation only mention some things about webpack, would be great to have an example webpack config file. I was reading to modify the webpack config in create-react-app projects you need to eject the project, or use an extra library like react-app-rewired https://www.npmjs.com/package/react-app-rewired so that's probably out of scope, I will redirect the topic to add more explanation about the webpack piece, even though making it easier would attract more people. I understand you can load the dependencies here in react:
How should the webpack file looks like for this to work? |
Beta Was this translation helpful? Give feedback.
-
Perfect. After removing useStrictCSP block it works.
See this warning though:
|
Beta Was this translation helpful? Give feedback.
-
Description
Explain how we can use the "ace" object of the Code Editor component when the application was created using create react app.
Would be nice to have for people that doesn't interact with webpack a lot.
Tried to follow this guide:
https://cloudscape.design/components/code-editor/?tabId=api
Using create-react-app with no success
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions