The Wayback Machine - https://web.archive.org/web/20200530175124/https://github.com/ksky521/nodeppt/issues/249
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

执行build时报`Entry file slide.md does not exist.` #249

Open
congzhaoyang opened this issue Jun 10, 2019 · 1 comment
Open

执行build时报`Entry file slide.md does not exist.` #249

congzhaoyang opened this issue Jun 10, 2019 · 1 comment

Comments

@congzhaoyang
Copy link

@congzhaoyang congzhaoyang commented Jun 10, 2019

Executable Version
node --version 10.15.3
npm --version 6.4.1
nodeppt -v 2.1.5
OS Version
Windows 7 6.1.7601

运行时出现的问题为:
image

我的slide.md内容为

title: test
speaker: admin
plugins:
    - echarts

<slide class="bg-black-blue aligncenter" image="https://source.unsplash.com/C1HhAQrbykQ/ .dark">

<slide class="bg-black-blue aligncenter" image="https://source.unsplash.com/C1HhAQrbykQ/ .light">

#  {.text-landing.text-shadow}

By admin {.text-intro}

[:fa-github: Github](https://github.com/ksky521/nodeppt){.button.ghost}

麻烦帮看一下,谢谢啦

@ksky521
Copy link
Owner

@ksky521 ksky521 commented Jun 10, 2019

能否帮忙 debug 下:

// packages/nodeppt-serve/index.js 里面的这部分,是不是 context 获取错误
const context = process.cwd();

    entry = entry || findExisting(context, ['main.js', 'index.js']);

    if (!entry) {
        console.log(chalk.red(`Failed to locate entry file in ${chalk.yellow(context)}.`));
        console.log(chalk.red('Valid entry file should be one of: main.js, index.js.'));
        process.exit(1);
    }
    if (!fs.existsSync(path.resolve(context, entry))) {
        console.log(chalk.red(`Entry file ${chalk.yellow(entry)} does not exist.`));
        process.exit(1);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.