aws-amplify / docs

AWS Amplify Framework Documentation
https://docs.amplify.aws
Apache License 2.0
487 stars 1.06k forks source link

update module error troubleshooting doc for vue #8114

Open ykethan opened 5 days ago

ykethan commented 5 days ago

Describe the content issue: A clear and concise description of what the content issue is. Is there content missing or is there incorrect content? Currently instructions on the document applies to NextJS and would need to be updated to information specific to vue

the tsconfig.app.json will need to add a include for data and function resource files to mitigate the error

{
  "extends": "@vue/tsconfig/tsconfig.dom.json",
  "include": [
    "env.d.ts",
    "src/**/*",
    "src/**/*.vue",
    "amplify/data/resource.ts",
    "amplify/auth/pre-sign-up/resource.ts" 
  ],
  "exclude": ["src/**/__tests__/*"],
  "compilerOptions": {
    "composite": true,
    "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}

URL page where content issue is: https://docs.amplify.aws/vue/build-a-backend/troubleshooting/cannot-find-module-amplify-env/