Support create-react-app React apps
See original GitHub issueDescription
The current version of the plugin is incompatible with react apps created with the create-react-app (CRA) CLI. This includes creating a custom fork of CRA to add the arcgis webpack plugin
A couple issues I encountered:
- The CRA ModuleScope plugin fails because the dojo modules don’t have a context object applied to them: https://github.com/facebook/create-react-app/blob/next/packages/react-dev-utils/ModuleScopePlugin.js#L25.
- Also, it looks like the node-global (https://webpack.js.org/configuration/node/#node-global) configuration needs to be
true
for other plugins that CRA uses.
Steps to Reproduce
- Create fork of Create React App
- Modify fork
react-scripts
package to add the basic@arcgis/webpack-plugin
configuration - Create a new react app with the
react-scripts
package set to this custom fork - Load a webmap
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Create a New React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in...
Read more >Create React App
Whether you're using React or another library, Create React App lets you focus on code, not build tools. To create a project called...
Read more >facebook/create-react-app - GitHub
Create React App works on macOS, Windows, and Linux. If something doesn't work, please file an issue. If you have questions or need...
Read more >How To Set Up a React Project with Create React App
React is a popular JavaScript framework for creating front-end applications. Originally created by Facebook, it has gained popularity by ...
Read more >7 Ways to Create a New React Application - Bits and Pieces
Bit has built-in support and predefined templates for React apps, reusable components, express apps, node modules and more. It provides everything out of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ssylvia Hi, have you resolved the problem?
This issue has been automatically closed due to inactivity.