Giter Site home page Giter Site logo

Comments (10)

rschristian avatar rschristian commented on April 27, 2024 1

Yeah I can't recall running into anything like this in the past. Some shebang shenanigans here and there I believe but noting resembling this.

Happy to be a guinea pig to help resolve of course.

from microsite.

rschristian avatar rschristian commented on April 27, 2024 1

I just cloned the template manually to build and that portion does seem to be working now. Output certainly seems in-line with what I'd expect.

from microsite.

rschristian avatar rschristian commented on April 27, 2024 1

I'll close this now as the problems all seem to be addressed. Thanks for your quick response, I look forward to using Microsite!

from microsite.

natemoo-re avatar natemoo-re commented on April 27, 2024

Yikes! Sorry this is happening, but thanks for opening an issue.

I assume this is the first time you've run into something like this? I can think of one shared thing between the create-microsite and microsite packages that is probably pretty uncommon—they pass the following arguments to node via the shebang at the top of the file.

#!/usr/bin/env node --experimental-modules --experimental-specifier-resolution=node

I tracked down this comment on StackOverflow which suggests that Linux doesn't handle arguments passed to node in this way. I'll do some more digging and see what I can come up with.

from microsite.

natemoo-re avatar natemoo-re commented on April 27, 2024

Really hoping these changes fix your problem. Can you try again with npm init microsite (should use [email protected] automatically.) Assuming that works, [email protected] should also work now!

The resolution here involved a few things:

I removed all the flags from the shebang in create-microsite, since node@14 is LTS and has unflagged --experimental-modules and I wasn't actually using --experimental-specifier-resolution=node.

microsite was a bit harder, since I was using bare imports. typescript won't rewrite them for you (see typescript#16577), but it turns out you can add the .js extension in the source without a problem. This removed the need for --experimental-specifier-resolution=node.

So now both packages have no arguments in the shebang (#!/usr/bin/env node). That should work cross-platform without a problem.

from microsite.

rschristian avatar rschristian commented on April 27, 2024

Hmm, unless I'm using this incorrectly, no project actually gets created, though the command does now finish. Can't find the project anywhere in my home directory, so I assume it's just not written?

2020-11-22_20-25

from microsite.

natemoo-re avatar natemoo-re commented on April 27, 2024

Glad it actually runs now! Can confirm that you're using it correctly! That's weird that you're not seeing any output... I'm going to try to reproduce.

from microsite.

natemoo-re avatar natemoo-re commented on April 27, 2024

Awesome! create-microsite was swallowing uncaught errors, so maybe the output will be more helpful now?

Really appreciate you taking the time to give this tool a shot!

from microsite.

rschristian avatar rschristian commented on April 27, 2024

She works now! Looks like it wasn't a swallowed error but changing from join to resolve did the trick.

from microsite.

natemoo-re avatar natemoo-re commented on April 27, 2024

Awesome, I suspected that might be the case. Thanks for triaging this with me! That's a ✅ on Microsite's first real issue.

By the way, as you're playing around with things, you can pass the following to microsite build. --debug-hydration will log out component hydration events and --no-clean will keep the intermediate output. I'll add this as a note somewhere.

from microsite.

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.