Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Support root as destination for compiled imba code (was "Error on build") #5

Open
ericvida opened this issue Aug 5, 2020 · 2 comments

Comments

@ericvida
Copy link
Member

ericvida commented Aug 5, 2020

I get this error when I run server on build

Uncaught TypeError: Error resolving module specifier “web_modules/imba/dist/imba.js”. Relative module specifiers must start with “./”, “../” or “/”. app-root.js:1:6
@eulores
Copy link
Contributor

eulores commented Aug 5, 2020

The source directory containing imba files cannot (yet) be mounted to root.

Here is a workaround:

Assuming that src contains imba files, and public the rest of assets, including html, then

    "mount": {
        "src": "/",
        "public": "/"
    },

should be changed to

    "mount": {
        "src": "/whatever",
        "public": "/"
    },

@eulores eulores changed the title Error on build Support root as destination for compiled imba code (was "Error on build") Aug 8, 2020
@eulores
Copy link
Contributor

eulores commented Aug 8, 2020

Also tracked here imba/snowpack-app-imba#1

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

No branches or pull requests

2 participants