UNPKG

377 BJavaScriptView Raw
1let proxy = new Proxy(
2 {},
3 {
4 get: (obj, property) => {
5 if (property === '__esModule') {
6 return {}
7 }
8
9 throw new Error(
10 `You\'re trying to import \`@heroicons/react/solid/${property}\` from Heroicons v1 but have installed Heroicons v2. Install \`@heroicons/react@v1\` to resolve this error.`
11 )
12 },
13 }
14)
15
16module.exports = proxy