typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
9 stars 0 forks source link

Can never use file created without `.typ` extension as a main/module file #354

Closed Andrew15-5 closed 1 month ago

Andrew15-5 commented 1 month ago

Description

  1. Create a project ("a").
  2. Create a file without extension ("a").
  3. Rename by appending .typ ("a.typ").
  4. You can't use this as a main/root/module file.

Also, I was porting a local project and created a file with only its base name. After that, I inserted its content and added .typ. As a result, I got "Not a typst source file" in the main file where that module is imported.

screenshots #325 ![image](https://github.com/typst/webapp-issues/assets/37143421/912b660a-a0d1-410e-9369-4599392a4e86) ![image](https://github.com/typst/webapp-issues/assets/37143421/f315f931-ee73-494f-8b4b-6d61defca2ca) ![image](https://github.com/typst/webapp-issues/assets/37143421/1b15f6f1-92f9-44d1-948e-d8535a48a34e)

Reproduction URL

No response

Browsers

Firefox

OS

Linux

laurmaedje commented 1 month ago

Duplicate of https://github.com/typst/webapp-issues/issues/163