Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Fix vercel deployment #27

Merged
merged 12 commits into from
Nov 5, 2020
Merged

Fix vercel deployment #27

merged 12 commits into from
Nov 5, 2020

Conversation

BeeMargarida
Copy link
Contributor

@BeeMargarida BeeMargarida commented Nov 5, 2020

- -
Issue Vercel deployment was failing: Screenshot 2020-11-05 at 08 57 53
Decisions - Install @babel/plugin-transform-runtime, which was being used but was not a dependency.
- There seems to be a problem between webpack 5 and storybook (here and here), with storybook still not supporting webpack@5. Since webpack is a dependency of this repo, it causes a certain number of problems in the deployment and usage. The solution was forcing the webpack version to below 5.
- The option --no-dll was included because storybook needs this for now (storybookjs/storybook#12408). Since the react version is limited because of enzyme and its support for react 17, I removed it.
- Enzyme is not yet compatible with react 17 (enzymejs/enzyme#2462), so the react version was forced to be below 17.
Animated GIF --

@vercel
Copy link

vercel bot commented Nov 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/platforme/ripe-sdk-components-react/g5xuuyrpd
✅ Preview: https://ripe-sdk-components-react-git-ms-fix-vercel-deployment.platforme.vercel.app

@BeeMargarida BeeMargarida changed the title Webpack version limited to under 5.0.0 Fix vercel deployment Nov 5, 2020
@BeeMargarida BeeMargarida marked this pull request as ready for review November 5, 2020 09:44
@BeeMargarida BeeMargarida added the bug Something isn't working label Nov 5, 2020
@BeeMargarida BeeMargarida requested a review from gcandal November 5, 2020 09:44
Copy link
Contributor

@gcandal gcandal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the Enzyme dependency coming from?

package.json Outdated
@@ -20,7 +20,7 @@
"scripts": {
"build": "cross-env NODE_ENV=production webpack --mode production --config webpack.config.js",
"build-dev": "cross-env NODE_ENV=development webpack --mode development --config webpack.config.js",
"build-storybook": "cross-env NODE_ENV=development build-storybook -c .storybook -o dist/storybook",
"build-storybook": "build-storybook -c .storybook -o dist/storybook",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with the cross-env part?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will revert!

package.json Outdated
@@ -48,8 +48,8 @@
"loaders.css": "^0.1.2",
"mocha": "^8.2.1",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react": "<17.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to find the semver expression that gives you the latest version inside 16. The difference between this and that is that 10.0.0 would be a valid version given your expression.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, used this https://semver.npmjs.com/

@gcandal gcandal assigned BeeMargarida and unassigned gcandal Nov 5, 2020
@BeeMargarida
Copy link
Contributor Author

Where is the Enzyme dependency coming from?

Used for testing of the react components

@gcandal
Copy link
Contributor

gcandal commented Nov 5, 2020

Where is the Enzyme dependency coming from?

Used for testing of the react components

Oh we are using it directly, alright.

@gcandal gcandal assigned joamag and unassigned gcandal Nov 5, 2020
@BeeMargarida
Copy link
Contributor Author

@gcandal The links to subscribe to:

@joamag joamag merged commit bfc5340 into master Nov 5, 2020
@joamag joamag deleted the ms/fix-vercel-deployment branch November 5, 2020 13:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants