You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TypeScript compiler reports that it cannot find @shopify/polaris/embedded/
If I append export * from './embedded'; at the bottom of polaris/types/index.d.ts then import {EmbeddedApp} from "@shopify/polaris"; it finds the type definition so the file clearly exists and is valid. I'm not sure why TypeScript can't find it.
Specifications
Polaris version: 1.0.1
React version: 15.5.4
Browser: Firefox 53.0
Device: Mac
Operating System: 10.12.4
TypeScript 2.2.2
NOTE: This repo is only used for reporting issues and new feature requests. We are not accepting pull requests at this point in time.
The text was updated successfully, but these errors were encountered:
Thanks for the issue @buggy. I've merged a fix with this on our internal repo for Polaris and you should see the fixes in sometime today under version 1.0.2.
Issue summary
The TypeScript compiler is unable to find the type definition for @shopify/polaris/embedded at the following line:
Expected behavior
I expect it to be able to find the type definition for @shopify/polaris/embedded and import the EmbeddedApp component .
Actual behavior
When running
tsc
I receive the following error:Steps to Reproduce the Problem
I took the embedded app example from https://github.com/Shopify/polaris/blob/master/documentation/Embeddded%20apps.md and modified it to work with TypeScript. The new code is:
The TypeScript compiler reports that it cannot find @shopify/polaris/embedded/
If I append
export * from './embedded';
at the bottom ofpolaris/types/index.d.ts
thenimport {EmbeddedApp} from "@shopify/polaris";
it finds the type definition so the file clearly exists and is valid. I'm not sure why TypeScript can't find it.Specifications
NOTE: This repo is only used for reporting issues and new feature requests. We are not accepting pull requests at this point in time.
The text was updated successfully, but these errors were encountered: