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

fix(create-stubs): An import path cannot end with a '.d.ts' extension. #3009

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

pyoner
Copy link
Contributor

@pyoner pyoner commented Jun 11, 2019

Hi,
I created this branch to reproduce the error https://github.com/pyoner/svelte-ts-template/tree/3.5.1
I got error

svelte-ts-template git:(3.5.1) ✗ npm run build

> [email protected] build /home/jungle/repo/svelte-ts-template
> rollup -c


src/main.ts → public/bundle.js...
node_modules/svelte/internal/index.d.ts:1:15 - error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing '../types/runtime/internal/index' instead.

1 export * from '../types/runtime/internal/index.d.ts';
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/svelte/store/index.d.ts:1:15 - error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing '../types/runtime/store/index' instead.

1 export * from '../types/runtime/store/index.d.ts';
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:10 - error TS2305: Module '"../../internal"' has no exported member 'onMount'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
           ~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:19 - error TS2305: Module '"../../internal"' has no exported member 'onDestroy'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                    ~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:30 - error TS2305: Module '"../../internal"' has no exported member 'beforeUpdate'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                               ~~~~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:44 - error TS2305: Module '"../../internal"' has no exported member 'afterUpdate'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                                             ~~~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:57 - error TS2305: Module '"../../internal"' has no exported member 'setContext'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                                                          ~~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:69 - error TS2305: Module '"../../internal"' has no exported member 'getContext'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                                                                      ~~~~~~~~~~
node_modules/svelte/types/runtime/index.d.ts:1:81 - error TS2305: Module '"../../internal"' has no exported member 'tick'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                                                                                  ~~~~
node_modules/svelte/types/runtime/index.d.ts:1:87 - error TS2305: Module '"../../internal"' has no exported member 'createEventDispatcher'.

1 export { onMount, onDestroy, beforeUpdate, afterUpdate, setContext, getContext, tick, createEventDispatcher } from 'svelte/internal';
                                                                                        ~~~~~~~~~~~~~~~~~~~~~
src/App.svelte:3:12 - error TS2305: Module '"../node_modules/svelte/store"' has no exported member 'writable'.

3   import { writable } from "svelte/store";
             ~~~~~~~~

created public/bundle.js in 7.5s

@Conduitry
Copy link
Member

@pngwn This is the PR I mentioned in chat. It sounds like from your comment that you corroborate its merginess.

@pngwn
Copy link
Member

pngwn commented Jun 14, 2019

Yep, this looks right.

@Conduitry Conduitry merged commit ac18505 into sveltejs:master Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants