Coder Social home page Coder Social logo

Comments (9)

sunvisor avatar sunvisor commented on August 25, 2024

あ、httpserver.js のソースコードを見ていたら

// TODO:コントローラーファイルが存在しない場合に例外発生

とありました。ひょっとしてこのせいですね。把握しておられたのならこの件は削除していただいて結構です。

from nextjs.

xenophy avatar xenophy commented on August 25, 2024

0.6.0devのブランチで試してもらえますか?
もしかしたら、直ってるかも。

from nextjs.

sunvisor avatar sunvisor commented on August 25, 2024

了解しました。ありがとうございます。

from nextjs.

sunvisor avatar sunvisor commented on August 25, 2024

0.6.dev にて実験したところ
http://localhost:3000/subdir1/
で,正常に表示されるようになっていました。
ただ,さらに横着して
http://localhost:3000/subdir1
とするとエラーが発生してnode自体が落ちてしまいます。この場合 length が undefined になってしまうんですね。

以下が node が出力したメッセージです。

Server running at http://127.0.0.1:3000/

/home/sunvisor/dev/NextJS/lib/NX/view/WebView.js:102
                        "Content-Length": data.length,
                                              ^
TypeError: Cannot read property 'length' of undefined
    at /home/sunvisor/dev/NextJS/lib/NX/view/WebView.js:102:47
    at [object Object].<anonymous> (fs.js:59:5)
    at [object Object].emit (events.js:42:17)
    at afterRead (fs.js:767:12)

from nextjs.

xenophy avatar xenophy commented on August 25, 2024

了解しました、修正次第コメントします。
ありがとうございます。

from nextjs.

xenophy avatar xenophy commented on August 25, 2024

commit eaeb333

にて、修正が完了しております。
ご確認ください。

from nextjs.

sunvisor avatar sunvisor commented on August 25, 2024

j確かに落ちなくなりました。が,

http://localhost:3000/subdir1

だと404になります。apacheとかでの動きだとここは省略されても表示される方がいいかと思いますが,いかがでしょうか。

from nextjs.

xenophy avatar xenophy commented on August 25, 2024

commit c3a013b
にて修正いたしました。

ご確認ください。

from nextjs.

sunvisor avatar sunvisor commented on August 25, 2024

確認しました。ありがとうございます。

from nextjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.