Closed Moxxxem closed 11 months ago
This will be resolved in the next patch release of nitro. ref: https://github.com/nuxt/nuxt/issues/24423
This will be resolved in the next patch release of nitro. ref: nuxt/nuxt#24423
Ty for answer, but i have trouble with "Expected input to be a string" error after application compiling (below nitro errors in logs)
The error 'Expected input to be a string' seems to be caused by a module you are using, not by nuxt/bridge. Can you provide an environment where this can be reproduced? (I couldn't reproduce it with the steps you've written.) https://stackblitz.com/github/nuxt/starter/tree/v2-bridge
Reproduce it with my config & package.json, ty for help: https://stackblitz.com/edit/github-ewdyxk
Solve this problem. Remove @nuxtjs/axios from modules and remove axios and proxy from config.
Removed:
axios: {
credentials: true,
proxy: true
},
proxy: {
'/api/**': {
target: process.env.API_URL,
secure: false,
changeOrigin: true,
pathRewrite: { '^/api': '' },
headers: {
Connection: 'keep-alive'
}
}
},
Added:
nitro: {
sourceMap: false,
devProxy: {
'/api/': {
target: process.env.API_URL,
secure: false,
changeOrigin: true,
pathRewrite: { '^/api': '' },
headers: {
Connection: 'keep-alive'
}
}
}
}
Environment
Build Modules: (), @nuxtjs/pwa@3.3.5, @nuxtjs/svg-sprite@0.5.2, @nuxt/bridge@3.0.0-rc.3-28343365.3c40b3f
Reproduction
After installing nuxt bridge and turn on bridge: true in nuxt.config.js, change 'nuxt' to 'nuxi' in package.json, reinstall dependencies run 'npm run dev'.
Describe the bug
After running app, next compiling client and server, after compiling i'm open localhost and have { "statusCode": 500, "stack": [] } on the screen and
ERROR [h3] [unhandled] Expected input to be a string at the console
Additional context
Before compiling nuxt throw ERROR [worker reload] Cannot read properties of null (reading 'address') at console, but after compiling nitro builded correctly
Logs