Shopify / post-purchase-ui

MIT License
9 stars 10 forks source link

Unknown word var api #10

Closed eni9889 closed 1 year ago

eni9889 commented 1 year ago

I am getting the following error:

CleanShot 2022-11-22 at 13 45 54

Has anyone experienced this?

eni9889 commented 1 year ago

For anyone else running into this I found the solution. I added the following before calling the addWebpackConfig function

const rules = config.module.rules.filter(x => x.test?.test && x.test.test('file.css'));
rules.forEach((rule) => {
    rule.exclude = /node_modules\/@shopify\/post-purchase-ui-react/
})