Coder Social home page Coder Social logo

remix.init failed about indie-stack HOT 7 CLOSED

remix-run avatar remix-run commented on April 26, 2024
remix.init failed

from indie-stack.

Comments (7)

TimonVS avatar TimonVS commented on April 26, 2024 3

@Zakini I ran into the same problem, I've outlined the steps below to run the fork:

  1. Check out the fork:
git clone https://github.com/MichaelDeBoey/indie-stack.git
  1. Switch to the branch containing the fixes: fix-convert-to-js
git checkout -b fix-convert-to-js origin/fix-convert-to-js
  1. Install dependencies.
npm install
  1. Run init script as described in README.
npx remix init
  1. Test if everything works by running the app.
npm run dev
  1. Remove .git directory to remove references to @MichaelDeBoey's repository.
rm -rf .git

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 26, 2024 2

This will be fixed by #138

from indie-stack.

Zakini avatar Zakini commented on April 26, 2024 2

Ah, if using a specific branch from a fork is the answer, you can do that more easily with npx create-remix:

npx create-remix --template https://github.com/MichaelDeBoey/indie-stack/tree/fix-convert-to-js

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 26, 2024 1

As @Zakini said: npx create-remix --template https://github.com/MichaelDeBoey/indie-stack/tree/fix-convert-to-js will indeed do the trick

from indie-stack.

Zakini avatar Zakini commented on April 26, 2024

What's the workaround in the meantime? Should we use an older version, and if so, how do we do that with npx create-remix and what's the latest version that doesn't have this bug?

from indie-stack.

MattDClarke avatar MattDClarke commented on April 26, 2024

I created a project using npx create-remix --template https://github.com/MichaelDeBoey/indie-stack/tree/fix-convert-to-js. I get the following warnings and errors in my console:

  • react-dom.development.js:86 Warning: Expected server HTML to contain a matching <head> in <html

  • Uncaught Error: Hydration failed because the initial UI does not match what was rendered on the server.

  • react-dom.development.js:86 Warning: An error occurred during hydration. The server HTML was replaced with client content in <#document>.

  • Uncaught Error: There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.

Also, I'm going through the Developer Blog tutorial, the request form data is empty in the action:

export const action: ActionFunction = async ({ request }) => {
    const formData = await request.formData();
    console.log({formData});
    return redirect("/posts/admin");
} 

This logs:

{ formData: FormData {} }

Windows 10
Node v16.13.1
npm v8.1.2

from indie-stack.

MichaelDeBoey avatar MichaelDeBoey commented on April 26, 2024

@MattDClarke Do you have any browser extension enabled?

Please open another ticket if you still have the problem after disabling all your browser extensions.

from indie-stack.

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.