You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In https://github.com/unepwcmc/restoration-marketplace/pull/27, in order to use the local version of the component library and successfully run the webpack dev server (with yarn dev), the babel-eslint dependency needed moving out of devDependencies and into the main dependencies section before running yarn build-lib. Without doing this, webpack said it couldn't find the babel-eslint module and errored out
In my case the dist folder had already been generated and needed deleting before rerunning yarn build-lib after the dependency change - yarn build-lib didn't seem to bring in the missing package without fully deleting the dist folder and rebuilding from scratch. May have also needed to delete node_modules and rerun yarn install between the dependency change and yarn build-lib
In https://github.com/unepwcmc/restoration-marketplace/pull/27, in order to use the local version of the component library and successfully run the webpack dev server (with
yarn dev
), thebabel-eslint
dependency needed moving out ofdevDependencies
and into the maindependencies
section before runningyarn build-lib
. Without doing this, webpack said it couldn't find thebabel-eslint
module and errored outIn my case the
dist
folder had already been generated and needed deleting before rerunningyarn build-lib
after the dependency change -yarn build-lib
didn't seem to bring in the missing package without fully deleting thedist
folder and rebuilding from scratch. May have also needed to deletenode_modules
and rerunyarn install
between the dependency change andyarn build-lib
Comment in PR linked above regarding this: https://github.com/unepwcmc/restoration-marketplace/pull/27#issuecomment-1147641142
The text was updated successfully, but these errors were encountered: