Why am I getting this error?

I have some code. When I preview in Wix, it tells me

Error loading web module backend/MemberBackend.jsw: Cannot find module 'wix-location' Require stack: - /user-code/backend/MemberBackend.jsw - /user-code/stubmodule-that-does-the-require.js - /elementory/node_modules/scoped-require/index.js - /elementory/factories.js - /elementory/create-app.js - /elementory/cloud-grid-runner.js

But in my code, I imported the wixLocation module:

import wixLocation from 'wix-location';
import wixData from 'wix-data';
import wixMembers from 'wix-members';
import { authentication } from 'wix-members';

Could someone help me solve this issue? Thanks!