Re: Customer Account UI Extension

Solved

Customer Account UI Extension

flitsharsh
Shopify Partner
4 0 0

In customer Ui Extension,

On path 'extensions/reward-page/src/ProfileBlockExtension.jsx', i have following import 

 

import { ProfileBlockWrapper } from "./components/ProfileBlockWrapper";


and ProfileBlockWrapper component is located on 'extensions/reward-page/src/components/ProfileBlockWrapper.jsx' which is named exported

 

But when i try to import this component , i am getting Error that 

Could not resolve "./components/ProfileBlockWrapper"

 

In Customer ui extension , is there any different way to import and export the component ?

 
Accepted Solution (1)

Milind
Shopify Partner
9 1 4

This is an accepted solution.

Try to add file extension in the import statement.

import { ProfileBlockWrapper } from "./components/ProfileBlockWrapper.jsx";

View solution in original post

Reply 1 (1)

Milind
Shopify Partner
9 1 4

This is an accepted solution.

Try to add file extension in the import statement.

import { ProfileBlockWrapper } from "./components/ProfileBlockWrapper.jsx";