-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This mocks out the testing-library modules which were causing issues in the frontend build and adds temporary patches on postinstall for the other problematic react-admin libraries. We can remove the patches once they merge the PR that fixes this upstream: marmelab/react-admin#4970 Test Plan: Run yarn start --instance <instance location> to ensure the frontend builds without errors
- Loading branch information
1 parent
4c2630b
commit d8d7ec3
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/ra-core/esm/core/createAdminStore.js b/node_modules/ra-core/esm/core/createAdminStore.js | ||
index ea45a3f..8fba27b 100644 | ||
--- a/node_modules/ra-core/esm/core/createAdminStore.js | ||
+++ b/node_modules/ra-core/esm/core/createAdminStore.js | ||
@@ -70,7 +70,7 @@ export default (function (_a) { | ||
}); | ||
}; | ||
var sagaMiddleware = createSagaMiddleware(); | ||
- var typedWindow = window; | ||
+ var typedWindow = typeof window !== 'undefined' && window; | ||
var composeEnhancers = (process.env.NODE_ENV === 'development' && | ||
typeof typedWindow !== 'undefined' && | ||
typedWindow.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/node_modules/ra-data-fakerest/esm/index.js b/node_modules/ra-data-fakerest/esm/index.js | ||
index 9a95d24..281135c 100644 | ||
--- a/node_modules/ra-data-fakerest/esm/index.js | ||
+++ b/node_modules/ra-data-fakerest/esm/index.js | ||
@@ -46,7 +46,7 @@ export default (function (data, loggingEnabled) { | ||
if (loggingEnabled === void 0) { loggingEnabled = false; } | ||
var restServer = new FakeRest.Server(); | ||
restServer.init(data); | ||
- if (window) { | ||
+ if (typeof window !== 'undefined') { | ||
// give way to update data in the console | ||
window.restServer = restServer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters