Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

import path cannot end with ts

// index.ts
import { renderSection, useConfig, writeToFile } from './hooks.ts'

// changed from `./hooks.ts` to `./hooks`
import { renderSection, useConfig, writeToFile } from './hooks'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #path #ts
ADD COMMENT
Topic
Name
6+4 =