Skip to content

Commit f508658

Browse files
committed
add outline/solid upgrade error scripts
1 parent 45f7f3f commit f508658

File tree

7 files changed

+72
-2
lines changed

7 files changed

+72
-2
lines changed

react/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*
22
!.gitignore
33
!package.json
4+
!outline
5+
!solid

react/outline/index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let 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/outline/${property}\` from Heroicons v1 but have installed Heroicons v2. Install \`@heroicons/react@v1\` to resolve this error.`
11+
)
12+
},
13+
}
14+
)
15+
16+
module.exports = proxy

react/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
},
1212
"files": [
1313
"20",
14-
"24"
14+
"24",
15+
"solid",
16+
"outline"
1517
],
1618
"publishConfig": {
1719
"access": "public"

react/solid/index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let 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+
16+
module.exports = proxy

vue/outline/index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let 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/vue/outline/${property}\` from Heroicons v1 but have installed Heroicons v2. Install \`@heroicons/vue@v1\` to resolve this error.`
11+
)
12+
},
13+
}
14+
)
15+
16+
module.exports = proxy

vue/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
},
1212
"files": [
1313
"20",
14-
"24"
14+
"24",
15+
"outline",
16+
"solid"
1517
],
1618
"publishConfig": {
1719
"access": "public"

vue/solid/index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
let 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/vue/solid/${property}\` from Heroicons v1 but have installed Heroicons v2. Install \`@heroicons/vue@v1\` to resolve this error.`
11+
)
12+
},
13+
}
14+
)
15+
16+
module.exports = proxy

0 commit comments

Comments
 (0)