Specified module format (CommonJs) is not matching the module format of the source code (EcmaScript Modules) The CommonJs module format was specified in the package.json that is affecting this source file or by using an special extension, but Ecmascript import/export syntax is used in the source code. The module was automatically converted to an EcmaScript module, but that is in conflict with the specified module format. Either change the "type" field in the package.json or replace EcmaScript import/export syntax with CommonJs syntas in the source file. In some cases EcmaScript import/export syntax is added by an transform and isn't actually part of the source code. In these cases revisit transformation options to inject the correct syntax.
ķķė”ź²(?) ķė”ģ ķøė„¼ ķź³ ģė ģ¤ ģģ ź°ģ ģė¬ź° ė°ģķė¤.
ķ“ė¹ ģ½ėė„¼ ź±“ėė¦¬ģ§ė ģģėė° ź°ģźø° react-intersection-observer ė¼ģ“ėøė¬ė¦¬ė„¼ ģ¬ģ©ķź³ ģė ģ»“ķ¬ėķøė¤ģģ ėŖØė ģė¬ź° ė°ģķė¤.
ģ²ģģė ė“ ķė”ģ ķø ė“ģ package.json ķģ¼ė¤ģ ķģøķėė°, "type":"module"ė°ģ ģģ“ģ ķ¤ė§¤ė¤ź° ź²ģķė ėģ¤ ė¤ģģ źøģ ķµķ“ ķķøė„¼ ģ»ģė¤.
https://github.com/pmndrs/jotai/discussions/2579
nextjs ė²ģ ģ ģ ė°ģ“ķøķė©“ģ ķ°ė³“ķ©ģ ģ¹ķ©ģ“ ėģ²“ėė©“ģ ė§ģ§ ģė ė¬øģ ź° ģė ź±° ź°ģė¤.
ėؼģ ģ¤ė„ź° ė°ģķ ė¼ģ“ėøė¬ė¦¬ ķØķ¤ģ§ģ ģģ¹ė” ģ“ėķ“,
ģ ģė ķ“ź²°ģ± ģ²ė¼ node_modulesģ react-intersection-observer ķØķ¤ģ§ģ "type":"commonjs"ė„¼ ģ°¾ģė¤!
pnpmģ ķØķ¤ģ§ ė§¤ėģ ė” ģ¬ģ©ķźø° ėė¬øģ ė¤ģź³¼ ź°ģ“ ėŖ
ė ¹ģ“ė„¼ ģ
ė „ķ“ ģ¤¬ėė
pnpm patch-commit '***ė“ ķė”ģ ķø ź²½ė”***/tripie/node_modules/.pnpm_patches/react-intersection-observer@9.13.1'
ģė¬ź° ķ“ź²°ėģė¤!