AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Migrate Next.js and Storybook and fix compile errors #143

Closed nozomione closed 1 year ago

nozomione commented 1 year ago

Context

Currently the storybook doesn't load due to the compile errors and they needs to be fixed.

Recently we upgraded the docker image for Node v16 to v18 due to the deprecation of Node.js 16 and Vercel will discontinue the support as a result.

Because of this change, the following upgrades will be made to our repository to eliminate the dependency conflict (some errors are caused by it):

NOTE: For the yarn package manager, we have an option to include the auto-generated .yarn/cache in our repository which is recommended by the yarn (The Zero-installs) or to use the global cache (regular install). Based on the choice, we should modify .gitignore as listed in Which files should be gitignored.

e.g. ) A comiple error for the storybook:

ModuleBuildError: Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Cannot combine importAssertions and importAttributes plugins.

image

Problem or idea

Migrate the packages and resolve the compile errors so that we can run all the services.

Solution or next step