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

feat: Added support for Node 16 #315

Merged
merged 1 commit into from
Mar 30, 2022
Merged

Conversation

Jawayria
Copy link
Contributor

@Jawayria Jawayria commented Jan 17, 2022

Added support for node 14 and node 16. I had to make some additional changes to ensure successful tests execution and tobuild docker image successfully on node 16.

Additional Changes

  • Added options in Webpack config to fix Syntax Error: Support for the experimental syntax 'jsx' isn't currently enabled in react js
  • Updated babel-loader version to fix module build failed (from ./node_modules/babel-loader/lib/index.js) syntaxerror unexpected token
  • Updated Webpack-cli version to fix describe: optionsSchema.definitions.output.properties.path.description with webpack 4.8.3
  • Replaced node-sass with sass to fix Error: 'node-sass' version 6.0.0 is incompatible with ^4.0.0
  • Updated redux and redux-devtools-extension version to fix conflict with latest redux-thunk version

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #315 (d139be9) into master (8e8c5d8) will not change coverage.
The diff coverage is n/a.

❗ Current head d139be9 differs from pull request most recent head 72d74d3. Consider uploading reports for the commit 72d74d3 to get more accurate results

@@           Coverage Diff           @@
##           master     #315   +/-   ##
=======================================
  Coverage   98.90%   98.90%           
=======================================
  Files          71       71           
  Lines        1641     1641           
  Branches      404      404           
=======================================
  Hits         1623     1623           
  Misses         18       18           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e8c5d8...72d74d3. Read the comment docs.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/npm-publish.yml Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/npm-publish.yml Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@Jawayria Jawayria force-pushed the jawayria/support-node-16 branch from 9ecab4a to e99bf26 Compare March 28, 2022 14:55
COPY src/courseOutlineHealthCheckIndex.jsx src/courseOutlineHealthCheckIndex.jsx
COPY src/data/i18n/locales src/data/i18n/locales
COPY src/editImageModalIndex.jsx src/editImageModalIndex.jsx
COPY src/index.jsx src/index.jsx
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was getting 'not found' error for these files while building docker image so I explicitly copied all these files to docker.

Copy link

@connorhaugh connorhaugh left a comment

Choose a reason for hiding this comment

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

looks good to me! Thanks for your help on this.

@Jawayria Jawayria force-pushed the jawayria/support-node-16 branch from d139be9 to 72d74d3 Compare March 30, 2022 10:59
@Jawayria Jawayria changed the title build: Upgrade to Node v16 feat: Added support for Node 16 Mar 30, 2022
@Jawayria Jawayria merged commit c03100e into master Mar 30, 2022
@Jawayria Jawayria deleted the jawayria/support-node-16 branch March 30, 2022 11:08
ghassanmas added a commit to ghassanmas/studio-frontend that referenced this pull request Apr 28, 2022
  The PR openedx#315 added @babel/core >= 7.*. upgrading/using babel v7
  requires, making certian changes, e.g using @babel...etc. This
  lead to `npm run build` being interrupted/exited.without
  generating the /dist folder.

  Luckily, there is a pacakge to automate migration of config
  using `npx babel-upgrade --write`, followed by `npm install`, and
  few minor changes, the dist folder came to life again.

  This shall fixes this openedx/wg-build-test-release#166. and
  probably making this openedx/edx-platform#30309 unnecessary.
ghassanmas added a commit to ghassanmas/studio-frontend that referenced this pull request May 12, 2022
  The PR openedx#315 added @babel/core >= 7.*. upgrading/using babel v7
  requires, making certian changes, e.g using @babel...etc. This
  lead to `npm run build` being interrupted/exited.without
  generating the /dist folder.

  Luckily, there is a pacakge to automate migration of config
  using `npx babel-upgrade --write`, followed by `npm install`, and
  few minor changes, the dist folder came to life again.

  This shall fixes this openedx/wg-build-test-release#166. and
  probably making this openedx/edx-platform#30309 unnecessary.

  Note: This change adds "^7.0.0-bridge.0" as devDep, this is
  needed because we have pacakges that uses Babel 6, which are
  jest and babel-jest. once we upgrade to babel-jest and jest
  >=24.*.* the pacakge shall be removed.
aht007 pushed a commit that referenced this pull request May 13, 2022
The PR #315 added @babel/core >= 7.*. upgrading/using babel v7
  requires, making certian changes, e.g using @babel...etc. This
  lead to `npm run build` being interrupted/exited.without
  generating the /dist folder.

  Luckily, there is a pacakge to automate migration of config
  using `npx babel-upgrade --write`, followed by `npm install`, and
  few minor changes, the dist folder came to life again.

  This shall fixes this openedx/wg-build-test-release#166. and
  probably making this openedx/edx-platform#30309 unnecessary.

  Note: This change adds "^7.0.0-bridge.0" as devDep, this is
  needed because we have pacakges that uses Babel 6, which are
  jest and babel-jest. once we upgrade to babel-jest and jest
  >=24.*.* the pacakge shall be removed.
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.

4 participants