Error: post type from endpoints "posts,pages,media" with slug "service-worker.js" not found

I start from Introducing Twenty Nineteen.

This is the error:

    SERVER STARTED -- Listening @ localhost:3000
  - mode: development
  - target: module

webpack built client 91427814b6535ga50562 in 13304ms
ℹ 「wdm」: Child client:
                                Asset      Size                   Chunks             Chunk Names
    frontity-twentynineteen.module.js  3.82 MiB  frontity-twentynineteen  [emitted]  frontity-twentynineteen
                       list.module.js    45 KiB                     list  [emitted]  list
     + 1 hidden asset
Child server:
        Asset     Size  Chunks             Chunk Names
    server.js  6.2 MiB    main  [emitted]  main
ℹ 「wdm」: Compiled successfully.
Error: post type from endpoints "posts,pages,media" with slug "service-worker.js" not found
    at Object.eval (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/handlers/postType.ts:5:461)
    at process._tickCallback (internal/process/next_tick.js:68:7)
ℹ 「wdm」: Compiling...
webpack building...
webpack built client 91427814b6535ga50562 in 529ms
ℹ 「wdm」: Child client:
     3 assets
Child server:
     1 asset
ℹ 「wdm」: Compiled successfully.
Error: post type from endpoints "posts,pages,media" with slug "service-worker.js" not found
    at Object.eval (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/handlers/postType.ts:5:461)
    at process._tickCallback (internal/process/next_tick.js:68:7)

I see. Thanks for sharing.

I’m not sure why it’s trying to fetch the service-worker.js file.

Did you do anything else than installing the Twenty Nineteen theme?

I’ve just made a pull request to fix a bug in that theme, by the way: https://github.com/imranhsayed/frontity-twentynineteen/pull/22

1 Like