-
I just try the basic, and want to use import to make the project structure better. Here is the project stucture.
I want to import the sidebar from config.js, and get the error below: // docs/.vuepress/config.js
import { sidebar } from './configs' And here is my project https://github.com/ngekoding/vuepress-starter Am I doing something wrong? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
yzx9
Jun 15, 2021
Replies: 1 comment 5 replies
-
This is a limiation from |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ngekoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a limiation from
node.js
, miximport
andrequire
will get an error. The simplest solution is that change.js
to.ts
, typescript will help you solve the the problem.