#RollupError: Unexpected character '!'

1 messages · Page 1 of 1 (latest)

scarlet sapphire
#

I get that error when trying to build a site using the node adapter in "standalone" mode.

 File:
    /other/machine/path/project/node_modules/astro/astro.js
  Code:
    1: #!/usr/bin/env node
       ^
    2: /* eslint-disable no-console */
    3: 'use strict';

I'm not sure if its a bug or I'm misconfiguring something.

heavy anchorBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

scarlet sapphire
#

I'm including them inside a svelte component and using that component in an astro page. When I include that page to the project the error is shown. I'm indeed marking the svelte components as client:only="svelte"

#

I can also confirm that this happens with any adapter. So the error must be with importing this library