Skip to content

Commit

Permalink
fix: build-storybook failure with Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
gndz07 authored Jan 13, 2023
1 parent c20b199 commit a382075
Show file tree
Hide file tree
Showing 10 changed files with 27,760 additions and 22,972 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Config git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- name: Config git
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ yarn-error.log*

/dist

/storybook-static

.parcel-cache
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
3 changes: 3 additions & 0 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
core: {
builder: 'webpack5',
},
features: {
previewMdx2: true,
},
Expand Down
1 change: 1 addition & 0 deletions .storybook/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion components/Navigation/Navigation.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import { modifyVariantsForStory } from '../../utils/modifyVariantsForStory';
import { Badge } from '../Badge';
import { Text } from '../Text';
import { useDebouncedCallback } from 'use-debounce/lib';
import { useDebouncedCallback } from 'use-debounce';

export default {
title: 'Components/Navigation',
Expand Down
Loading

0 comments on commit a382075

Please sign in to comment.