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
In an app created via create-react-app using import DrawingManager from "react-google-maps/src/lib/drawing/DrawingManager";
will fail with the error message
Module parse failed: /.../react-google-maps-test/node_modules/react-google-maps/src/lib/drawing/DrawingManager.js Unexpected token (77:4)
You may need an appropriate loader to handle this file type.
|
| propTypes: {
| ...controlledPropTypes,
| ...defaultUncontrolledPropTypes,
| },
Since create-react-app uses a strictely defined build-process I have little influence on the features used.
Object spread is supported by the app.
import DrawingManager from "react-google-maps/src/lib/drawing/DrawingManager"; will fail import DrawingManager from "react-google-maps/lib/drawing/DrawingManager"; is working just fine
in the first case the src was the error
Careful here: WebStorm proposes the import from src and directly from react-google-maps. Both options will fail. The correct import is not proposed by WebStorm.
In an app created via create-react-app using
import DrawingManager from "react-google-maps/src/lib/drawing/DrawingManager";
will fail with the error message
Since create-react-app uses a strictely defined build-process I have little influence on the features used.
Object spread is supported by the app.
The requested SO-question.
Example: https://github.com/sdwio/react-google-maps-test
The text was updated successfully, but these errors were encountered: