Skip to content

Commit

Permalink
add outline/solid upgrade error scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Aug 23, 2022
1 parent 45f7f3f commit f508658
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 2 deletions.
2 changes: 2 additions & 0 deletions react/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*
!.gitignore
!package.json
!outline
!solid
16 changes: 16 additions & 0 deletions react/outline/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let proxy = new Proxy(
{},
{
get: (obj, property) => {
if (property === '__esModule') {
return {}
}

throw new Error(
`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.`
)
},
}
)

module.exports = proxy
4 changes: 3 additions & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
},
"files": [
"20",
"24"
"24",
"solid",
"outline"
],
"publishConfig": {
"access": "public"
Expand Down
16 changes: 16 additions & 0 deletions react/solid/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let proxy = new Proxy(
{},
{
get: (obj, property) => {
if (property === '__esModule') {
return {}
}

throw new Error(
`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.`
)
},
}
)

module.exports = proxy
16 changes: 16 additions & 0 deletions vue/outline/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let proxy = new Proxy(
{},
{
get: (obj, property) => {
if (property === '__esModule') {
return {}
}

throw new Error(
`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.`
)
},
}
)

module.exports = proxy
4 changes: 3 additions & 1 deletion vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
},
"files": [
"20",
"24"
"24",
"outline",
"solid"
],
"publishConfig": {
"access": "public"
Expand Down
16 changes: 16 additions & 0 deletions vue/solid/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
let proxy = new Proxy(
{},
{
get: (obj, property) => {
if (property === '__esModule') {
return {}
}

throw new Error(
`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.`
)
},
}
)

module.exports = proxy

0 comments on commit f508658

Please sign in to comment.