We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue-cli default config for webpack is including this.
config.resolve.alias.set('@', path.resolve(__dirname, './src/'))
so I use @ in import on the client-side. It is working perfectly
import { Role } from '@/utils/enum'
but when I use it in apollo-server (i use it in data-sources.js) It is not working. I got error msg like this.
projectDir\node_modules\@vue\cli-service\bin\vue-cli-service.js at Object.<anonymous> (projectDir\apollo-server\data-sources.js:1) { code: 'MODULE_NOT_FOUND', requireStack: [ 'projectDir\\apollo-server\\data-sources.js', 'projectDir\\node_modules\\vue-cli-plugin-apollo\\utils\\load.js', 'projectDir\\node_modules\\vue-cli-plugin-apollo\\graphql-server\\index.js', 'projectDir\\node_modules\\vue-cli-plugin-apollo\\index.js', 'projectDir\\node_modules\\@vue\\cli-service\\lib\\Service.js', 'projectDir\\node_modules\\@vue\\cli-service\\bin\\vue-cli-service.js' ] }
Is it a bug? If not, pls tell me how to config alias for apollo-server.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vue-cli default config for webpack is including this.
so I use @ in import on the client-side. It is working perfectly
but when I use it in apollo-server (i use it in data-sources.js)
It is not working. I got error msg like this.
Is it a bug?
If not, pls tell me how to config alias for apollo-server.
The text was updated successfully, but these errors were encountered: