Error Building a Pluggable Widget

0
Hello guys! I was trying to create a new pluggable widget that uses external modules. However, when I do the “run build” it raises this error:   [!] Error: Unexpected token (Note that you need @rollup/plugin-json to import JSON files) node_modules/cldr-core/supplemental/likelySubtags.json (2:16) 1: { 2: "supplemental": { ^   If anyone knows how to fix this and helps me to solve the problem I'll really appreciate it.   Thanks in advance
asked
1 answers
0

Add the plugin

npm i @rollup/plugin-json --save-dev
answered