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

Error when importing posts from WordPress blogs #9

Open
charitygamble opened this issue Dec 24, 2024 · 0 comments
Open

Error when importing posts from WordPress blogs #9

charitygamble opened this issue Dec 24, 2024 · 0 comments

Comments

@charitygamble
Copy link

Using npx @11ty/import wordpress [blog url] --output=public - I can import all of the assets, but as soon as it starts to import posts, it does the following:

Importing post public\blurring-the-lines-extras-by-amy-kaybach.md (5.81kB) from https://www.charlisbookbox.com/blurring-the-lines-extras-by-amy-kaybach/
node:fs:2346
return binding.writeFileUtf8(
^

Error: ENOENT: no such file or directory, open 'C:\Users\demen\OneDrive\Desktop\CharityGambleDeveloper\bookbox\public\blurring-the-lines-extras-by-amy-kaybach.md'
at Object.writeFileSync (node:fs:2346:20)
at Importer.toFiles (file:///C:/Users/demen/OneDrive/Desktop/CharityGambleDeveloper/bookbox/node_modules/@11ty/import/src/Importer.js:462:8)
at file:///C:/Users/demen/OneDrive/Desktop/CharityGambleDeveloper/bookbox/node_modules/@11ty/import/cli.js:142:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\demen\OneDrive\Desktop\CharityGambleDeveloper\bookbox\public\blurring-the-lines-extras-by-amy-kaybach\.md'
}

It does not matter if the public folder is already created or not and this issue happens consistently whether I am attempting to import from a self-hosted WordPress installation or from a WordPress.com blog - the first post that tries to import consistently fails to work because the markdown file doesn't exist. Any ideas why this is happening? I've tried multiple times and it just never imports the posts, only the assets (images).

I'm not sure if this is a weird bug or possibly user-error, but it doesn't seem to matter how I do it or what WordPress source I use, it seems to always do this.

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

No branches or pull requests

1 participant