Skip to content

Cannot build the newspaper demo #29

Open
@tisonkun

Description

@tisonkun
$ yarn install
$ yarn build
(node:1009) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1009) ExperimentalWarning: Use `importAttributes` instead of `importAssertions`
(Use `node --trace-warnings ...` to show where the warning was created)
03:42:53 PM [build] output target: static
03:42:53 PM [build] Collecting build info...
03:42:53 PM [build] Completed in 26ms.
03:42:53 PM [build] Building static entrypoints...
03:42:54 PM [build] Completed in 1.17s.

 building client 
Completed in 19ms.


 generating static routes 
(node:1009) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
▶ src/pages/index.astro
  └─ /index.html (+14ms)
▶ src/pages/projects.astro
  └─ /projects/index.html (+7ms)
λ src/pages/rss.xml.ts
  └─ /rss.xml (+11ms)
▶ src/pages/blog/[slug].astro
 error   require is not defined
ReferenceError: require is not defined
    at file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:16921:3
    at handleId (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:16696:14)
    at loadComponentsInOrder (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:16718:5)
    at Object.load (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:16864:13)
    at loadLanguages (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:16910:45)
    at ensureLoaded (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:17080:7)
    at runHighlighterWithAstro (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:17089:5)
    at AstroComponentInstance.factory (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:17108:35)
    at AstroComponentInstance.init (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:838:29)
    at AstroComponentInstance.render (file:///Users/tison/Brittani/nightsky-newspaper/dist/entry.mjs?time=1711957374648:843:18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions