Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded react-calendar to 1.20.0 #5331

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mohammadamer
Copy link
Contributor

Fixed bugs

[17:25:37] Error - [webpack] 'dist': ./node_modules/xml2js/lib/parser.js:17:17-47: Module not found: Error: Can't resolve 'timers' in 'C:\sp-dev-fx-webparts\samples\react-calendar\node_modules\xml2js\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "timers": require.resolve("timers-browserify") }' - install 'timers-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "timers": false }

[17:25:37] Warning - [webpack] 'dist': ./node_modules/sax/lib/sax.js:169:13-37: Module not found: Error: Can't resolve 'stream' in 'C:\react-calendar\node_modules\sax\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false }

What's in this Pull Request?

Upgraded react-calendar to 1.20.0
Fixed issues related to xml2js NPM package

Node Version

18.19.1

Node version used: 18.19.1

Checklist

  • My pull request affects only ONE sample.
  • My sample builds without any warnings
  • I have updated the README.md file's Version history. For new samples, created a new README.md file matching this template
  • My README.md has at least one static high-resolution screenshot (i.e. not a GIF) located in the assets folder.
  • My README.md contains complete setup instructions, including pre-requisites and permissions required
  • My solution includes a .nvmrc file indicating the version of Node.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant