Coder Social home page Coder Social logo

Comments (2)

MichaelDeBoey avatar MichaelDeBoey commented on April 20, 2024 1

This will be fixed by #138

from indie-stack.

BenSpencer avatar BenSpencer commented on April 20, 2024

I am hitting the same issue when running npx create-remix --template remix-run/indie-stack remix-blog-tutorial.

Trying to run remix init directly afterwards gives the trace:

% npx remix init
TypeError: 🚨 Oops, remix.init failed

Cannot read properties of undefined (reading 'length')
    at parseDocument (/Users/ben/Programming/remix-blog-tutorial/remix.init/node_modules/yaml/dist/public-api.js:45:80)
    at Object.parse (/Users/ben/Programming/remix-blog-tutorial/remix.init/node_modules/yaml/dist/public-api.js:67:17)
    at /Users/ben/Programming/remix-blog-tutorial/remix.init/index.js:142:12
    at async Promise.all (index 7)
    at async main (/Users/ben/Programming/remix-blog-tutorial/remix.init/index.js:133:7)
    at async Object.init (/Users/ben/Programming/remix-blog-tutorial/node_modules/@remix-run/dev/dist/cli/commands.js:129:5)
    at async Object.run (/Users/ben/Programming/remix-blog-tutorial/node_modules/@remix-run/dev/dist/cli/run.js:476:7)

I have tried 1.6.8 and 1.6.0 with the same result.

I'm on macOS 12.4 Monteray, with node 18.7.0 and npm/npx 8.15.0 installed via nvm.

When installing the blues stack this step runs ok. Without any stack this step doesn't run, which seems expected.

When running with JavaScript instead of TypeScript on the Indie stack it also works.

As best I can tell the error is coming from

readFileIfNotTypeScript(isTypeScript, DEPLOY_WORKFLOW_PATH, (s) =>
  YAML.parse(s)
)

where DEPLOY_WORKFLOW_PATH is .github/workflows/deploy.yml which does exist and has contents. This gets passed town to parseDocument as source which calls composer$1.compose(parser$1.parse(source), true, source.length).

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.