Comments (14)
Here's an example of a repo that uses nuxtdown and axios for other things: https://github.com/freesewing/site/blob/develop/nuxt/plugins/fs.js
from nuxtent-module.
Is one of the first things I changed when starting the update, there is some progress but is slow. You can see the code on the development branch and is published here you can install it with npm i --save @dinamomx/nuxtent
from nuxtent-module.
As long as I don't include Axios in the modules list, everything works as expected.
from nuxtent-module.
@brandonpittman Could you elaborate what you mean by "Nuxtent cannot load pages"? Do you have build errors? Do you have run-time errors? What are the error messages?
from nuxtent-module.
@brandonpittman Could you elaborate what you mean by "Nuxtent cannot load pages"? Do you have build errors? Do you have run-time errors? What are the error messages?
404s.
from nuxtent-module.
None of the examples in the repo here have @nuxtjs/axios declared as a module. If you do, you might just see what I mean. I tried it with the example repo, and it did the same thing.
from nuxtent-module.
@brandonpittman Ah, okay, I see. I probably never used Axios with it.
Just out of personal curiosity, I would be interested if you have the same problems with Nuxtdown.
https://github.com/joostdecock/nuxtdown-module
Basically a fork that fixed some major issues and I used that fork for my projects as long as those major issues exist in Nuxtent.
from nuxtent-module.
This is from the top of my head, and I'm on my phone, so take it with a grain of salt:
If you're using axios in your own project, you need to be careful to keep two different instances with their own configuration. If you mix them up, nuxtent won't be able olto connect to the content-api.
A quick way to check is to open your browser development tools, and check the AJAX requests. Where are they going, and what's the response? That should guide you to where the problem lies.
from nuxtent-module.
Check the API configuration section here: https://github.com/joostdecock/nuxtdown-module/blob/master/README.md#api-configuration
from nuxtent-module.
nuxtdown has the same problem.
Checked the AJAX requests but they're going to the same place, it seems.
from nuxtent-module.
@brandonpittman Thanks for testing.
from nuxtent-module.
So, are you guys who use Nuxtdown just pulling in Axios on a per-component basis?
from nuxtent-module.
This is helpful but (imho) it's this module that should be using an isolated instance of the axios configuration instead of having it break the default axios configuration.
As it stands now, if one needs to use the official @nuxtjs/axios module for other purposes, then setting it up according to the documentation will break the content api.
I think this module should either reuse the axios configuration defined on nuxt.config.js (if available) or ideally just use a completely isolated instance where we can setup every axios parameters in the module's configuration instead of just baseURL and browserBaseURL.
This would also allow, for example, to be able to change the "content-api" prefix on this module's configuration, which currently isn't possible AFAIK (?).
from nuxtent-module.
No one cares about this.
from nuxtent-module.
Related Issues (20)
- How to reference an image inside your nuxtent markdown content file? HOT 12
- Unable to extend markdown parser HOT 3
- Joining URLs with path.join
- Gray Matter
- Excerpt
- dn
- Sitemap example project fails HOT 4
- Give the ability to render the slug without dates HOT 2
- dependency issue HOT 1
- Online documentation unavailable HOT 7
- display informative error message when index is missing
- ✖ error TypeError: request.charCodeAt is not a function HOT 2
- 404 on refresh post HOT 7
- Roadmap for v3 HOT 19
- Nuxt 2.3.x and above failing to build Nuxtent pages HOT 16
- Is there any combination of nuxtent & nuxt that actually work for static build? HOT 1
- how to import third-part components HOT 1
- Different redirect routes for different strategies HOT 1
- Deprecate the module HOT 3
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 nuxtent-module.