Giter Club home page Giter Club logo

Comments (14)

joostdecock avatar joostdecock commented on May 25, 2024 1

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.

cesasol avatar cesasol commented on May 25, 2024 1

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.

brandonpittman avatar brandonpittman commented on May 25, 2024

As long as I don't include Axios in the modules list, everything works as expected.

from nuxtent-module.

renestalder avatar renestalder commented on May 25, 2024

@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 avatar brandonpittman commented on May 25, 2024

@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.

brandonpittman avatar brandonpittman commented on May 25, 2024

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.

renestalder avatar renestalder commented on May 25, 2024

@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.

joostdecock avatar joostdecock commented on May 25, 2024

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.

joostdecock avatar joostdecock commented on May 25, 2024

Check the API configuration section here: https://github.com/joostdecock/nuxtdown-module/blob/master/README.md#api-configuration

from nuxtent-module.

brandonpittman avatar brandonpittman commented on May 25, 2024

nuxtdown has the same problem.

Checked the AJAX requests but they're going to the same place, it seems.

from nuxtent-module.

renestalder avatar renestalder commented on May 25, 2024

@brandonpittman Thanks for testing.

from nuxtent-module.

brandonpittman avatar brandonpittman commented on May 25, 2024

So, are you guys who use Nuxtdown just pulling in Axios on a per-component basis?

from nuxtent-module.

ptdev avatar ptdev commented on May 25, 2024

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.

brandonpittman avatar brandonpittman commented on May 25, 2024

No one cares about this.

from nuxtent-module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.