fullyalive / project_store

PWA with NextJs, GraphCMS - 쇼핑몰 프로젝트
1 stars 0 forks source link

nprogress apollo hoc 호환 #3

Open fullyalive opened 5 years ago

fullyalive commented 5 years ago

@1.1.0 에서는 작동하는데 @1.4.0 에서는 오류 발생

This relative module was not found:

darinnj commented 5 years ago

Im getting the same error when I run 'yarn run dev' as anyone figured out a solution? Here is the error...

✔ success server compiled in 1s 423ms ✔ success client compiled in 1s 481ms

ERROR Failed to compile with 1 errors 5:29:31 PM

This relative module was not found:

✔ success client compiled in 51ms

ERROR Failed to compile with 1 errors 5:29:32 PM

This relative module was not found:

OdongoWaga commented 5 years ago

This worked for me: Try importing it as

import NProgress from "next-nprogress/component"

Then you can style it the same way

<NProgress
  color="#29d"
  options={{ trickleSpeed: 50 }}
  showAfterMs={300}
  spinner
/>