Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@marko/create's default starter app template no longer exists #215

Open
stephenscaff opened this issue Oct 15, 2022 · 2 comments
Open

@marko/create's default starter app template no longer exists #215

stephenscaff opened this issue Oct 15, 2022 · 2 comments

Comments

@stephenscaff
Copy link

Environment

create-marko@6.1.1
node v16.17.1
npm 8.18.0


Details

When choosing the "default starter template app" template during @marko/create, I get the error "Example basic does not exist in marko-js/examples."


Actual Behavior

marko/create errors on default starter app template.


Steps to reproduce

1 - run npm init marko

Need to install the following packages:
  create-marko@6.1.1
Ok to proceed? (y) y

2 - Type y to install, then "Type your project name"

3 - Choose Default starter app template

✔ Choose a template · Default starter app

4 - Error:

✖ Example basic does not exist in marko-js/examples.

Error: Example basic does not exist in marko-js/examples.
    at assertExampleExists (.../node_modules/@marko/create/dist/index.js:99:11)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async create (.../node_modules/@marko/create/dist/index.js:54:5)
    at async run (.../node_modules/@marko/create/dist/cli.js:151:9)

Additional Questions

  • Is the marko cli (marko/build, marko/serve) still supported and considered a valid/recommended approach?
  • I've been using marko-vite and feel that's the best path forward for Marko builds / tooling in general. However, I have a need for static builds occasionally, and require a bit more control than ssr-to-html (ie: ensuring all routes are generated without needing front-end links to crawl, removing all unused files).

Thanks!

@tigt
Copy link
Contributor

tigt commented Dec 8, 2022

I tried reproducing your bug, but it looks like it works now for whatever reason:

Last login: Wed Dec  7 12:50:33 on ttys002
~ % cd Desktop 
Desktop % npm init marko
Need to install the following packages:
  create-marko
Ok to proceed? (y) y
✔ Type your project name · test
✔ Choose a template · Default starter app
✔ Project created! To get started, run:

    cd test
    npm run dev

It might have been fixed in the time between you opening this ticket and me finally getting around to it. 😅

Additional answers

Is the marko cli (marko/build, marko/serve) still supported and considered a valid/recommended approach?

That’s what we plan on recommending in general for the foreseeable future, yeah. @rturnq is working on improving marko/serve, even.

However, I have a need for static builds occasionally, and require a bit more control than ssr-to-html (ie: ensuring all routes are generated without needing front-end links to crawl, removing all unused files).

If you’d be so kind as to give us as much detail as possible on these needs for your project, we’ll look into supporting them better!

In the meantime, my personal favorite DIY build tool for Marko apps is @marko/rollup. If it helps, I have a full Rollup config from an old project you can check/steal from if you like.

@wwxiaoqi
Copy link

Maybe he still exists.

Node Version:v20.10.0
npm Version:10.2.3
OS Version: Windows 11 23H2(22631.3007)

$npm init marko
√ Type your project name · my-app
√ Choose a template · Default starter app
× Example basic does not exist in marko-js/examples.

Error: Example basic does not exist in marko-js/examples.
    at assertExampleExists (C:\Users\xiaoqi\AppData\Local\npm-cache\_npx\ba91dde5859b4878\node_modules\@marko\create\dist\index.js:99:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async create (C:\Users\xiaoqi\AppData\Local\npm-cache\_npx\ba91dde5859b4878\node_modules\@marko\create\dist\index.js:54:5)
    at async run (C:\Users\xiaoqi\AppData\Local\npm-cache\_npx\ba91dde5859b4878\node_modules\@marko\create\dist\cli.js:151:9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants