Since installing nuxt-shopify and running npm run test (jest), I am now receiving the error:
[fatal] Cannot use import statement outside a module
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Pointing to the error:
node_modules/nuxt-shopify/lib/module.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import path from 'path';
^^^^^^
I've tried all matter of guides online to ignore it, but I can't suss it out myself.
Hi there
Since installing nuxt-shopify and running
npm run test
(jest), I am now receiving the error:Pointing to the error:
I've tried all matter of guides online to ignore it, but I can't suss it out myself.