#Private github module

1 messages · Page 1 of 1 (latest)

charred tiger
#

Maybe you show is the package.json of your Package/Lib.

rain fiber
#

Sorry, forgot about that:

{
  "name": "",
  "version": "1.0.0",
  "description": "A collection of components for the Dashboard",
  "repository": "",
  "license": "MIT",
  "type": "module",
  "exports": {
    ".": {
      "types": "./dist/types.d.ts",
      "import": "./dist/module.mjs",
      "require": "./dist/module.cjs"
    }
  },
  "main": "./dist/module.cjs",
  "types": "./dist/types.d.ts",
  "files": [
    "dist"
  ],
  "scripts": {
    "prepack": "nuxt-module-build build",
    "dev": "nuxi dev playground",
    "dev:build": "nuxi build playground",
    "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
    "release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
    "lint": "eslint .",
    "test": "vitest run",
    "test:watch": "vitest watch",
    "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
  },
  "dependencies": {
    "@nuxt/kit": "^3.13.2",
    "bootstrap": "^5.3.3",
    "alwan": "^2.1.1",

    "@fortawesome/vue-fontawesome": "^3.0.8",
    "@fortawesome/pro-solid-svg-icons": "^6.6.0"
  },
  "devDependencies": {
    "@nuxt/devtools": "^1.6.0",
    "@nuxt/eslint-config": "^0.6.0",
    "@nuxt/module-builder": "^0.8.4",
    "@nuxt/schema": "^3.13.2",
    "@nuxt/test-utils": "^3.14.2",
    "@types/node": "latest",
    "changelogen": "^0.5.7",
    "eslint": "^9.12.0",
    "nuxt": "^3.13.0",
    "typescript": "latest",
    "vitest": "^2.1.3",
    "vue-tsc": "^2.1.6",
    "@types/bootstrap": "^5.2.10"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "@babel/eslint-parser"
    },
    "rules": {
      "vue/multi-word-component-names": "off",
      "regexp/no-unused-capturing-group": "off"
    }
  }
}
charred tiger
#

And how do you install it?

rain fiber
#

as dependency: "x": "github:x/DashboardComponents",

rain fiber
#

I'll take a look, thanks

rain fiber
#

works. But:
I get a “unhandled Promise Rejection: ReferenceError: Can't find variable: useId” when i componets own my module.
If it is directly in Nuxt projects it works.
anyone idea why?

charred tiger
rain fiber