juice icon indicating copy to clipboard operation
juice copied to clipboard

Cannot process juice import because of `#!/usr/bin/env node`

Open mschipperheyn opened this issue 6 years ago • 2 comments

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> #!/usr/bin/env node

I'm using razzle (a create-react-app style loading environment).

This was working in another project I have, but this one is a monorepo. Not sure.

mschipperheyn avatar Apr 29 '19 23:04 mschipperheyn

I ultimately got it working by implementing shebang-loaderand forcing loading mimer v1.0.0. Sucky how hard this is. This shebang stuff could easily be separated out into separate access points. There seem to be multiple shebangs in the dependency chain.

mschipperheyn avatar May 17 '19 12:05 mschipperheyn

@mschipperheyn if you'd like to make a PR to make this easier for other people that would be appreciated

jrit avatar May 20 '19 20:05 jrit