Skip to content

Error on require of .acx #2

Open
@thecouchcoder

Description

@thecouchcoder

I am unsure how to use the card that is produced by this plugin.

In my index.js file I first tried to use

const acx = require ('./BasicCard.acx')
similar to this example

However I get a syntax error saying it is an unexpected token.
If I remove that require statement and just print the output of babel.transform of the .acx file the card looks fine. This lead me to believe the .acx file is not getting transpiled on require.

I thought perhaps I needed to include the transpiled file so I changed the require to
const acx = require("./test/test.js");

However I get an error "can't find module "../schema".

I am very unfamiliar with babel, so it's likely I have something setup wrong, but I am not sure.

Any help would be appreciated.
https://github.com/aes421/AdaptiveCardTest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions