Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/how_tos/migrate-frontend-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ With the exception of any custom scripts, replace the `scripts` section of your

```json
"scripts": {
"dev": "PORT=YOUR_PORT openedx dev",
"dev": "PORT=YOUR_PORT PUBLIC_PATH=/YOUR_APP_NAME openedx dev",
"i18n_extract": "openedx formatjs extract",
"lint": "openedx lint .",
"lint:fix": "openedx lint --fix .",
Expand All @@ -139,6 +139,7 @@ With the exception of any custom scripts, replace the `scripts` section of your
```

- Replace `YOUR_PORT` with the desired port, of course.
- Replace `YOUR_APP_NAME` with the basename used on your site.config, not doing this will result in only the root route working.
- Note that `fedx-scripts` no longer exists, and has been replaced with `openedx`.

> [!TIP]
Expand Down Expand Up @@ -356,7 +357,7 @@ Jest needs a babel.config.js file to be present in the repository. It should lo
```js
const { createConfig } = require('@openedx/frontend-base/config');

module.exports = createConfig('test');
module.exports = createConfig('babel');
```


Expand Down
2 changes: 1 addition & 1 deletion runtime/slots/widget/iframe/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function dispatchUnmountedEvent() {
*/
export function useElementSize() {
// Holds a reference to the ResizeObserver
const observerRef = useRef<ResizeObserver>();
const observerRef = useRef<ResizeObserver | null>(null);

const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
const [offset, setOffset] = useState({ x: 0, y: 0 });
Expand Down
Loading