natemoo-re / microsite

Do more with less JavaScript. Microsite is a smarter, performance-obsessed static site generator powered by Preact and Snowpack.

Home Page:https://npm.im/microsite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microsite crashes on start/build

akellbl4 opened this issue · comments

I've tried to use microsite default example.

❯ MacOS 10.15.7 (19H2)
❯ node v14.15.3
❯ npm 6.14.9
$ npm init microsite microsite-example
$ cd microsite-example
$ npm i
$ npm run start

I got an error:

(node:27049) UnhandledPromiseRejectionWarning: TypeError: (intermediate value) is not iterable
    at dev (/.../node_modules/microsite/dist/cli/microsite-dev.js:53:28)

It was cased by loadConfiguration because it returns non-iterable value. (code)
I fixed it and tried to run it again. Another error appeared :(

UnhandledPromiseRejectionWarning: Error: startDevServer() was been renamed to startServer().
    at startDevServer (/.../node_modules/snowpack/lib/index.js:132227:11)

Okay, tried to use startServer instead of startDevServer. Third attempt :) (code)

[snowpack] ! building dependencies...
[snowpack] node_modules/microsite/dist/client/csr.js
   Module "/web_modules/microsite/_error.js" could not be resolved by Snowpack (Is it installed?).
(node:27826) UnhandledPromiseRejectionWarning: Error: Install failed.
    at Object.install (/.../node_modules/snowpack/lib/index.js:47788:23)

I stopped here :) I could continue to investigate it deeper. But I would like to ask If I'm doing smth wrong?

Hiya! This is a duplicate of #87. There’s a current workaround for Yarn users using Yarn Resolutions. Otherwise, we’re waiting on Microsite 1.1.0. to drop.

@tylerbrostrom Oh, my bad didn't find it. Thanks for the fast responce.
If you need some help I would like to do smth for the project :)

ezoic increase your site revenue