Closed lufego closed 2 years ago
I'm having the exact same problem and even tried the suggestion on
Docs excludeSrc wrong regex
and wrote my-component-name/**
. Does anyone know what the problem is?
I'm encountering the same issue. If I were to put all my stories under one folder, no nested sub-directories, then it works. Also using glob pattern excludeSrc: ['*/.stories.*']
Jessee
"excludeSrc" is deprecated, it seems, and should be replaced by "exclude".
In case someone else trips over this issue, you can fix this in the tsconfig.json
by adding to the exclude
patterns:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": false,
"experimentalDecorators": true,
"lib": [
"dom",
"es2017"
],
"moduleResolution": "node",
"module": "esnext",
"target": "es2017",
"noUnusedLocals": true,
"noUnusedParameters": true,
"jsx": "react",
"jsxFactory": "h"
},
"include": [
"src"
],
"exclude": [
"node_modules",
"**/stories"
]
}
Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for bug reports and feature requests. Please use our slack channel for questions about Stencil.
Thank you for using Stencil!
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: Story file is inserted in the final dist collection folder
Expected behavior: Prevent the story file that goes in the same directory as my component from being inserted in the final collection dist folder
Steps to reproduce: I have the following structure:
Related code: In my
stencil.config.js
I have:but it still copies the file.