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
vite Example:
export default defineConfig({ root: './src', plugins: [ pluginAPIRoutes({ cacheDir: '../.api', // this starts without an error }), ], //... }
Call a route errors Error: Cannot find module 'express' imported from '/home/myproject/.api/configure.js' Express is installed.
Error: Cannot find module 'express' imported from '/home/myproject/.api/configure.js'
The text was updated successfully, but these errors were encountered:
With absolute path it works. cacheDir: process.cwd() + '/.api',
cacheDir: process.cwd() + '/.api',
Sorry, something went wrong.
Na not working. When you use absolute path it will not create .api with configure.ts,....
And the next question, which paths must be set, if you want to use api-Files outside of src?
No branches or pull requests
vite Example:
Call a route errors
Error: Cannot find module 'express' imported from '/home/myproject/.api/configure.js'
Express is installed.
The text was updated successfully, but these errors were encountered: