Closed TGTGamer closed 3 years ago
Hey, is src\navigation\BottomTabNavigator
created by destiny?
https://github.com/benawad/destiny/blob/develop/src/index/formatFileStructure/moveFiles.ts#L41
The folder is, yes
https://github.com/Videndum/twitch-extension-template/blob/master/src/navigation/BottomTabNavigator.tsx#L13 Your import should be:
- import Storyboard from '../screens/storyboard'
+ import Storyboard from '../screens/Storyboard'
On linux I'm having this error though:
INFO: Generating tree for: ./src
ERROR: Cannot find import ../screens/storyboard for /home/anatole/dev.old/twitch-extension-template/src/navigation/BottomTabNavigator.tsx
Thank you for the response, sorry for my delay. So what is the next steps as this seems to be a bug within destiny?
Just to be clear, was your import wrong the first time you ran destiny? If so, what output do you have now that's fixed?
I stand corrected. Did a fresh install, made only the change specified above and it completed without errors. For reference:
Closing ticket
Heya pal,
Really love the idea of this application, had an issue when running it through on one of my applications. Would love you to advise on how I can fix this issue.
Application in question: https://github.com/Videndum/twitch-extension-template
The debug (Very Long)
```powershell destiny "src/**/*.ts*" -w --debug DEBUG: +0ms version: 0.7.1 DEBUG: +2ms config used: { help: false, include: [ 'src/**/*.ts*' ], version: false, write: true, avoidSingleFile: false, debug: true } DEBUG: +27ms glob matches for "src/**/*.ts*": [ 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\0-Welcome.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\1-Button.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\2-Constants.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\3-LinearGradient.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\4-Font.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\EditScreenInfo.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\StyledText.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\Themed.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\constants\\Colors.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\constants\\Layout.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useCachedResources.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useColorScheme.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useColorScheme.web.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\BottomTabNavigator.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\index.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\LinkingConfiguration.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\NotFoundScreen.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\Storyboard.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\TabOneScreen.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\TabTwoScreen.tsx' ] DEBUG: +11ms restructured map: { 'src/**/*.ts*': [ 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\0-Welcome.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\1-Button.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\2-Constants.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\3-LinearGradient.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\4-Font.stories.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\EditScreenInfo.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\StyledText.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\components\\Themed.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\constants\\Colors.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\constants\\Layout.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useCachedResources.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useColorScheme.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\hooks\\useColorScheme.web.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\BottomTabNavigator.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\index.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\navigation\\LinkingConfiguration.ts', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\NotFoundScreen.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\Storyboard.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\TabOneScreen.tsx', 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src\\screens\\TabTwoScreen.tsx' ] } INFO: Generating tree for: src/**/*.ts* WARN: could not find source file that is linked to 4-Font.stories.tsx | 2 locations were checked: 4-Font.tsx and ..\4-Font.tsx WARN: could not find source file that is linked to 1-Button.stories.tsx | 2 locations were checked: 1-Button.tsx and ..\1-Button.tsx WARN: could not find source file that is linked to 0-Welcome.stories.tsx | 2 locations were checked: 0-Welcome.tsx and ..\0-Welcome.tsx WARN: could not find source file that is linked to 2-Constants.stories.tsx | 2 locations were checked: 2-Constants.tsx and ..\2-Constants.tsx WARN: could not find source file that is linked to 3-LinearGradient.stories.tsx | 2 locations were checked: 3-LinearGradient.tsx and ..\3-LinearGradient.tsx src ├──Layout.ts ├──navigation.tsx ├──navigation\BottomTabNavigator.tsx ├──navigation\BottomTabNavigator\shared\EditScreenInfo.tsx ├──navigation\BottomTabNavigator\shared\Themed.tsx ├──navigation\BottomTabNavigator\storyboard.tsx ├──navigation\BottomTabNavigator\TabOneScreen.tsx ├──navigation\BottomTabNavigator\TabOneScreen\EditScreenInfo\StyledText.tsx ├──navigation\BottomTabNavigator\TabTwoScreen.tsx ├──navigation\LinkingConfiguration.ts ├──navigation\NotFoundScreen.tsx ├──navigation\shared\Colors.ts ├──navigation\shared\useColorScheme.ts ├──Storyboard.tsx ├──Storyboard\index.js ├──useCachedResources.ts ├──useCachedResources\SpaceMono-Regular.ttf └──useColorScheme.web.ts WARN: Found 2 unused files: constants\Layout.ts hooks\useColorScheme.web.ts DEBUG: +56ms generated tree(s): [ { parentFolder: 'D:\\Repositories\\devspace\\tgtgamer\\twitch-extension-template\\src', tree: { 'constants\\Layout.ts': 'Layout.ts', 'navigation\\index.tsx': 'navigation.tsx', 'screens\\NotFoundScreen.tsx': 'navigation\\NotFoundScreen.tsx', 'navigation\\BottomTabNavigator.tsx': 'navigation\\BottomTabNavigator.tsx', 'constants\\Colors.ts': 'navigation\\shared\\Colors.ts', 'hooks\\useColorScheme.ts': 'navigation\\shared\\useColorScheme.ts', 'screens\\storyboard.tsx': 'navigation\\BottomTabNavigator\\storyboard.tsx', 'screens\\TabOneScreen.tsx': 'navigation\\BottomTabNavigator\\TabOneScreen.tsx', 'components\\EditScreenInfo.tsx': 'navigation\\BottomTabNavigator\\shared\\EditScreenInfo.tsx', 'components\\StyledText.tsx': 'navigation\\BottomTabNavigator\\TabOneScreen\\EditScreenInfo\\StyledText.tsx', 'components\\Themed.tsx': 'navigation\\BottomTabNavigator\\shared\\Themed.tsx', 'screens\\TabTwoScreen.tsx': 'navigation\\BottomTabNavigator\\TabTwoScreen.tsx', 'navigation\\LinkingConfiguration.ts': 'navigation\\LinkingConfiguration.ts', 'screens\\Storyboard.tsx': 'Storyboard.tsx', 'index.js': 'Storyboard\\index.js', 'hooks\\useCachedResources.ts': 'useCachedResources.ts', 'assets\\fonts\\SpaceMono-Regular.ttf': 'useCachedResources\\SpaceMono-Regular.ttf', 'hooks\\useColorScheme.web.ts': 'useColorScheme.web.ts' } } ] INFO: Fixing imports. DEBUG: +17ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\0-Welcome.stories.tsx" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\0-Welcome.stories.tsx" DEBUG: +10ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\1-Button.stories.tsx" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\1-Button.stories.tsx" DEBUG: +0ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\2-Constants.stories.tsx" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\2-Constants.stories.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\3-LinearGradient.stories.tsx" DEBUG: +0ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\3-LinearGradient.stories.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\4-Font.stories.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\EditScreenInfo.tsx" DEBUG: +2ms replacing import of "../constants/Colors" by "../../shared/Colors" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\EditScreenInfo.tsx" DEBUG: +14ms replacing import of "./StyledText" by "../TabOneScreen/EditScreenInfo/StyledText" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\EditScreenInfo.tsx" DEBUG: +1ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\EditScreenInfo.tsx" DEBUG: +2ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\StyledText.tsx" DEBUG: +12ms replacing import of "./Themed" by "../../shared/Themed" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\StyledText.tsx" DEBUG: +1ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\StyledText.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\Themed.tsx" DEBUG: +2ms replacing import of "../constants/Colors" by "../../shared/Colors" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\Themed.tsx" DEBUG: +16ms replacing import of "../hooks/useColorScheme" by "../../shared/useColorScheme" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\Themed.tsx" DEBUG: +0ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\Themed.tsx" DEBUG: +15ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\constants\Colors.ts" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\constants\Colors.ts" DEBUG: +0ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\constants\Layout.ts" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\constants\Layout.ts" DEBUG: +16ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useCachedResources.ts" DEBUG: +15ms replacing import of "../assets/fonts/SpaceMono-Regular.ttf" by "./useCachedResources/SpaceMono-Regular.ttf" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useCachedResources.ts" DEBUG: +1ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useCachedResources.ts" DEBUG: +2ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useColorScheme.ts" DEBUG: +18ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useColorScheme.ts" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useColorScheme.web.ts" DEBUG: +0ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useColorScheme.web.ts" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +2ms replacing import of "../constants/Colors" by "./shared/Colors" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +1ms replacing import of "../hooks/useColorScheme" by "./shared/useColorScheme" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +2ms replacing import of "../screens/storyboard" by "./BottomTabNavigator/storyboard" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +1ms replacing import of "../screens/TabOneScreen" by "./BottomTabNavigator/TabOneScreen" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +1ms replacing import of "../screens/TabTwoScreen" by "./BottomTabNavigator/TabTwoScreen" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +1ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +2ms replacing import of "../../types" by "../types" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +2ms replacing import of "../screens/NotFoundScreen" by "./navigation/NotFoundScreen" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +20ms replacing import of "./BottomTabNavigator" by "./navigation/BottomTabNavigator" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +1ms replacing import of "./LinkingConfiguration" by "./navigation/LinkingConfiguration" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +0ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\index.tsx" DEBUG: +2ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\LinkingConfiguration.ts" DEBUG: +1ms no import found in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\LinkingConfiguration.ts" DEBUG: +0ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\NotFoundScreen.tsx" DEBUG: +2ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\Storyboard.tsx" DEBUG: +2ms replacing import of ".." by "./Storyboard" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\Storyboard.tsx" DEBUG: +0ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\Storyboard.tsx" DEBUG: +1ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabOneScreen.tsx" DEBUG: +2ms replacing import of "../components/EditScreenInfo" by "./shared/EditScreenInfo" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabOneScreen.tsx" DEBUG: +1ms replacing import of "../components/Themed" by "./shared/Themed" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabOneScreen.tsx" DEBUG: +0ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabOneScreen.tsx" DEBUG: +2ms checking imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabTwoScreen.tsx" DEBUG: +18ms replacing import of "../components/EditScreenInfo" by "./shared/EditScreenInfo" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabTwoScreen.tsx" DEBUG: +2ms replacing import of "../components/Themed" by "./shared/Themed" in "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabTwoScreen.tsx" DEBUG: +0ms writing new imports of "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabTwoScreen.tsx" INFO: Moving files. DEBUG: +94ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useColorScheme.web.ts" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\useColorScheme.web.ts" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\assets\fonts\SpaceMono-Regular.ttf" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\useCachedResources\SpaceMono-Regular.ttf" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\hooks\useCachedResources.ts" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\useCachedResources.ts" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\index.js" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\Storyboard\index.js" DEBUG: +80ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\Storyboard.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\Storyboard.tsx" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabTwoScreen.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\TabTwoScreen.tsx" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\Themed.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\shared\Themed.tsx" DEBUG: +78ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\StyledText.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\TabOneScreen\EditScreenInfo\StyledText.tsx" DEBUG: +80ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\components\EditScreenInfo.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\shared\EditScreenInfo.tsx" DEBUG: +80ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\TabOneScreen.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\TabOneScreen.tsx" DEBUG: +79ms moving "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\storyboard.tsx" to "D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\storyboard.tsx" (node:6480) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, rename 'D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\screens\storyboard.tsx' -> 'D:\Repositories\devspace\tgtgamer\twitch-extension-template\src\navigation\BottomTabNavigator\storyboard.tsx' at Object.renameSync (fs.js:763:3) at moveFiles (D:\Repositories\devspace\tgtgamer\twitch-extension-template\node_modules\destiny\lib\destiny.js:189:21) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async formatFileStructure (D:\Repositories\devspace\tgtgamer\twitch-extension-template\node_modules\destiny\lib\destiny.js:383:5) at async run (D:\Repositories\devspace\tgtgamer\twitch-extension-template\node_modules\destiny\lib\destiny.js:1040:5) (Use `node --trace-warnings ...` to show where the warning was created) (node:6480) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:6480) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. DEBUG: +26ms exiting ```