Skip to content

Adding nuxt-highcharts to Nuxt.config modules produces errors with other plugins #72

Answered by patroza
patroza asked this question in Q&A
Discussion options

You must be logged in to vote

In .nuxt/types, Nuxt generates:
InjectionType<typeof import("../../../../node_modules/.pnpm/[email protected]/node_modules/nuxt-highcharts/lib/plugin").default> & but this file doesn't exist

To workaround the issue, a patch for the npm package:

diff --git a/lib/plugin.d.ts b/lib/plugin.d.ts
new file mode 100644
index 0000000000000000000000000000000000000000..5298df7f0f673c97fe02c77b016ac9998ade2291
--- /dev/null
+++ b/lib/plugin.d.ts
@@ -0,0 +1,2 @@
+declare const _default: any;
+export default _default;

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@richardeschloss
Comment options

@cloudfinch-shivansh
Comment options

Answer selected by patroza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants