shrhdk / text-to-svg

Convert text to SVG path without native dependence.
Other
964 stars 131 forks source link

Can't resolve './build/src/index.js' #44

Closed ovensi closed 5 years ago

ovensi commented 5 years ago

I can't run v3.1.4 ,Can't resolve './build/src/index.js'. I found your index.jsfile

/**
 * Copyright (c) 2016 Hideki Shiro
 */

module.exports = require('./build/src/index.js');

And I can't found the folder named buildin 3.1.4. Maybe you should change it to

module.exports = require('./src/index.js');
mambahao commented 5 years ago

+1

fxa76 commented 5 years ago

just in case you are stuck with this here is what worked for me :

  1. Git clone the repository
  2. npm install
  3. npm run-script build
  4. copy the build directory in the node_modules/text-to-svg of your project
shrhdk commented 5 years ago

@ovensi and everyone.

Thank you for reporting, and I'm sorry for the problem. I am working on fix this issue.

shrhdk commented 5 years ago

I released v3.1.5 including build/src/index.js. Could you try this version?