thehyve / react-json-to-table

react-json-to-table
GNU General Public License v3.0
36 stars 28 forks source link

Next.js + react-json-to-table not playing nice #19

Open MariuzM opened 3 years ago

MariuzM commented 3 years ago

getting this error in Next.js

error - ./node_modules/react-json-to-table/build/lib/components/JsonToTable/JsonToTable.css
Global CSS cannot be imported from within node_modules.
Read more: https://err.sh/next.js/css-npm
Location: node_modules/react-json-to-table/build/lib/components/JsonToTable/JsonToTable.js
solangeDev commented 3 years ago

I have this error with next js node_modules/react-json-to-table/build/lib/components/JsonToTable/JsonToTable.css:1 .json-to-table td, ^

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:979:16) at Module._compile (internal/modules/cjs/loader.js:1027:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18)

paul-asvb commented 3 years ago

+1