Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not export anything and no loader/ in dist #1662

Closed
dominictobias opened this issue Jun 18, 2019 · 3 comments
Closed

Does not export anything and no loader/ in dist #1662

dominictobias opened this issue Jun 18, 2019 · 3 comments
Labels

Comments

@dominictobias
Copy link

dominictobias commented Jun 18, 2019

Stencil version:

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:

  • Docs say that for integrations we should import defineCustomElements from dist/loader but even after npm run build (lots of files missing on just npm start by the way) there is no loader folder in dist, only one outside it:

Screenshot 2019-06-18 at 21 44 34

  • packages "main" entry points to dist/index.js, which points to ./cjs/index.cjs.js which has nothing in it except 'use strict';, so that's a no-go too.

Expected behavior:
Library should export defineCustomElements.

Steps to reproduce:
npm init stencil

Note this generated files with v1 beta8, I manually updated to 1.0.4. Haven't done anything special except add the scss plugin and the start of a few custom components.

@ionitron-bot ionitron-bot bot added the triage label Jun 18, 2019
@dominictobias
Copy link
Author

dominictobias commented Jun 19, 2019

PS I just ran npm run build on a completely new component project via npm init stencil and same result and exports nothing in "main" entry as mentioned.

Screenshot 2019-06-19 at 13 48 20

@glennlawyer
Copy link

Please see #1649 which asks the same question.

Wish we had the answer, this is driving me crazy.

@dominictobias
Copy link
Author

Ah thanks I'll have a read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants