Package Details: marktext 0.16.3-2

Git Clone URL: https://aur.archlinux.org/marktext.git (read-only, click to copy)
Package Base: marktext
Description: A simple and elegant open-source markdown editor that focused on speed and usability
Upstream URL: https://marktext.app
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 21
Popularity: 0.091890
First Submitted: 2018-05-01 08:22
Last Updated: 2021-06-11 15:14

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

danisztls commented on 2020-04-21 12:23

I found the problem. marktext expects to be built with node 10, building fails with node 13 but node 12 (nodejs-lts-erbium) works like a charm.

danisztls commented on 2020-04-21 11:42

@caleb

Git: 3a6182b

yarn run v1.22.4
$ node .electron-vue/build.js && electron-builder --dir

| building main process
| building renderer process

ERROR  failed to build main process

Hash: 544d2efeccc8d499b9e6
Version: webpack 4.42.0
Time: 1859ms
Built at: 21/04/2020 08:40:22
      Asset      Size  Chunks         Chunk Names
    main.js  3.76 KiB       0         main
main.js.map   1.6 KiB       0  [dev]  main
Entrypoint main = main.js main.js.map
[0] ./src/main/index.js 2.8 KiB {0} [built] [failed] [1 error]

ERROR in ./src/main/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /home/daniel/AUR/marktext/src/marktext-0.16.1/babel.config.js: Error while loading config - Cannot find module '@babel/compat-data/corejs3-shipped-proposals'

Require stack:
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/babel.config.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/module-types.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/configuration.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/babel-loader/lib/index.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/loadLoader.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/LoaderRunner.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModule.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModuleFactory.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/Compiler.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/webpack/lib/webpack.js
- /home/daniel/AUR/marktext/src/marktext-0.16.1/.electron-vue/build.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:952:15)
    at Function.Module._load (internal/modules/cjs/loader.js:835:27)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)
    at Module.require (internal/modules/cjs/loader.js:1012:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/home/daniel/AUR/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js:29:44)
    at Module._compile (internal/modules/cjs/loader.js:1123:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Module.load (internal/modules/cjs/loader.js:972:32)
    at Function.Module._load (internal/modules/cjs/loader.js:872:14)

...

alerque commented on 2020-04-21 11:21

@danielsouzat Lets see output from git describe --always --dirty=* and then from makepkg -C.

danisztls commented on 2020-04-21 11:08

@caleb I'm having the same issue as @halcek. Tested by cloning repo and running makepkg myself.

alerque commented on 2020-04-18 18:31

@halcek I don't think you're building from the latest commit in this package repository. Your error message shows you are building with yay and that somehow yarn is using your home directory for it's package cache. Anything outside of the build directory is explicitly against the Arch packaging guidelines, and that's something I fixed recently by specifying a cache dir inside the $srcdir. I suggest you do a clean build. You should test by cloning this repo and running makepkg yourself, I think yay might be tripping you up by using some older cached stuff in your home directory.

halcek commented on 2020-04-18 10:35

Currently, there's the following build error:

ERROR in ./src/main/index.js
    Module build failed (from ./node_modules/babel-loader/lib/index.js):
    Error: /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/babel.config.js: Error while loading config - Cannot find module '@babel/compat-data/corejs3-shipped-proposals'
    Require stack:
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/babel.config.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/module-types.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/configuration.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/config/files/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/core/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/babel-loader/lib/index.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/loadLoader.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/loader-runner/lib/LoaderRunner.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModule.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/NormalModuleFactory.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/Compiler.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/webpack/lib/webpack.js
    - /home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/.electron-vue/build.js
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:952:15)
        at Function.Module._load (internal/modules/cjs/loader.js:835:27)
        at Module.require (internal/modules/cjs/loader.js:1012:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object.<anonymous> (/home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js:10:55)
        at Module._compile (internal/modules/cjs/loader.js:1123:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
        at Module.load (internal/modules/cjs/loader.js:972:32)
        at Function.Module._load (internal/modules/cjs/loader.js:872:14)
        at Module.require (internal/modules/cjs/loader.js:1012:19)
        at require (internal/modules/cjs/helpers.js:72:18)
        at Object.<anonymous> (/home/mareklachbc/.cache/yay/marktext/src/marktext-0.16.1/node_modules/@babel/preset-env/lib/index.js:29:44)
        at Module._compile (internal/modules/cjs/loader.js:1123:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
        at Module.load (internal/modules/cjs/loader.js:972:32)
        at Function.Module._load (internal/modules/cjs/loader.js:872:14)


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

GitSquared commented on 2020-03-27 10:20

Updated to Marktext v0.16.0.

@caleb Sent you an email.

alerque commented on 2020-03-07 10:43

Please build this using the Arch electron package as a dependency instead of bundling it. I realize this is a pain to get going at first but it is a much better outcome for systems that run it. I can probably contribute a patch to get it working if you add me as a co-maintainer.

phiL0co commented on 2019-11-18 18:55

THX @GitSquared for adopting and solving the problem! :)

Maddix commented on 2019-11-18 18:21

@GitSquared That did it. Thanks!