Comments (5)
@atinux I have similar problem. I need this importantly. Is this fixable?
After updating to latest nuxt release, the module doesn't seem to work at all
I solved it. Anyone looking to add multiple subdomain with nuxt3, without any package, have a look at this repo https://github.com/zernonia/keypress
from router-module.
Having other issue on clean Nuxt 3:
[vite] Internal server error: Failed to resolve import "../router.js" from "virtual:nuxt:/app/nuxt-test/.nuxt/router.js". Does the file exist?
from router-module.
Version 1.7.0
in Nuxt 3
:
{
...
"devDependencies": {
"nuxt": "3.0.0-rc.3",
},
"dependencies": {
"@nuxtjs/router": "^1.7.0",
}
}
If you include the module in the modules
section:
import { defineNuxtConfig } from 'nuxt';
export default defineNuxtConfig({
...
modules: [
'@nuxtjs/router',
],
...
});
Then we get this error:
ERROR 10:01:40 PM [vite] Internal server error: Failed to resolve import "../router.js" from "virtual:nuxt:C:\laragon\www\nuxt3\test-02\.nuxt\router.js". Does the file exist? 22:01:40
Plugin: vite:import-analysis
File: virtual:nuxt:C:/laragon/www/nuxt3/test-02/.nuxt/router.js
1 | import { createRouter as customCreateRouter } from '../router.js'
| ^
2 |
3 |
at formatError (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:38663:46)
at TransformContext.error (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:38659:19)
at normalizeUrl (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:56830:26)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async TransformContext.transform (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:56979:57)
at async Object.transform (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:38900:30)
at async doTransform (C:\laragon\www\nuxt3\test-02\node_modules\vite\dist\node\chunks\dep-59dc6e00.js:55857:29)
At https://modules.nuxtjs.org/, you can see that @nuxtjs/router
is not currently supported in Nuxt 3
.
from router-module.
@atinux I have similar problem. I need this importantly. Is this fixable?
from router-module.
@atinux I have similar problem. I need this importantly. Is this fixable?
After updating to latest nuxt release, the module doesn't seem to work at all
from router-module.
Related Issues (20)
- base route is appended to url on page referesh HOT 1
- next() function is not working well HOT 1
- children in route.js don't work HOT 2
- Custom router in .nuxt folder HOT 2
- does it support nuxt3 with vue3 HOT 3
- Vue router 4 support HOT 6
- Release HOT 1
- Readme "If you are using Nuxt < 2.16.0, the parameter store is not available" HOT 2
- the css load order changes after using @nuxtjs/router
- Cannot extend routes from a module
- Code splitting not working with router.js HOT 3
- `Cannot read properties of undefined (reading 'options')` on add @nuxtjs/router to Nuxt 3 project HOT 1
- Docs: Missing correct docs about the `store` parameter.
- Can I access to the routes within another module?
- Anchor link dont work on yarn generate
- Is this module compatible with SSG build?
- Nuxt 3 Support HOT 1
- Nuxt content not generate or parse to custom router
- Hydratation error with SSG HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router-module.