Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Impossível carregar locawebstyle via npm em um projeto MeteorJS #1854

Open
rpesciotta opened this issue Feb 9, 2019 · 0 comments
Open

Impossível carregar locawebstyle via npm em um projeto MeteorJS #1854

rpesciotta opened this issue Feb 9, 2019 · 0 comments

Comments

@rpesciotta
Copy link

rpesciotta commented Feb 9, 2019

Sou novo no locaweb style, e estou tentando utilizar em um projeto com Meteor, mas não consigo importar o locawebstyle, o que nesse ponto não sei dizer se é um bug, ou erro de utilização.

Instalei o locawebstyle via npm.
No meu código, tento importar o pacote de duas maneiras, ambas falham.

  1. via require
    let locastyle = require("locawebstyle);

Erro no browser:
00:17:21.337 Error: Cannot find module '../pikaday' modules-runtime.js:232:12
makeMissingError http://localhost:3000/packages/modules-runtime.js:232:12
require http://localhost:3000/packages/modules-runtime.js:251:17
require http://localhost:3000/packages/modules-runtime.js:268:14
locastyle.js/< http://localhost:3000/packages/modules.js:1094:73
locastyle.js http://localhost:3000/packages/modules.js:1094:1
fileEvaluate http://localhost:3000/packages/modules-runtime.js:346:7
require http://localhost:3000/packages/modules-runtime.js:248:14
require http://localhost:3000/packages/modules-runtime.js:268:14
main.js main.js:4:16
fileEvaluate http://localhost:3000/packages/modules-runtime.js:346:7
require http://localhost:3000/packages/modules-runtime.js:248:14
require http://localhost:3000/packages/modules-runtime.js:268:14
http://localhost:3000/app/app.js:255:15

  1. via import
    import locastyle from "locawebstyle";

Erro no browser:
00:18:57.336 Error: Cannot find module '../pikaday' modules-runtime.js:232:12
makeMissingError http://localhost:3000/packages/modules-runtime.js:232:12
require http://localhost:3000/packages/modules-runtime.js:251:17
require http://localhost:3000/packages/modules-runtime.js:268:14
locastyle.js/< http://localhost:3000/packages/modules.js:1094:73
locastyle.js http://localhost:3000/packages/modules.js:1094:1
fileEvaluate http://localhost:3000/packages/modules-runtime.js:346:7
require http://localhost:3000/packages/modules-runtime.js:248:14
moduleLink http://localhost:3000/packages/modules.js:291:33
main.js main.js:1:203
fileEvaluate http://localhost:3000/packages/modules-runtime.js:346:7
require http://localhost:3000/packages/modules-runtime.js:248:14
require http://localhost:3000/packages/modules-runtime.js:268:14
http://localhost:3000/app/app.js:259:15

Versões:

  • Vale ressaltar que já está importado no projeto o jQuery 3.3.1.
  • A versão do locawebstyle é 3.10.0.
  • A Versão do Meteor é 1.8.0.2
  • A versão do node em que roda o Meteor é 8.11.4
  • O comportamento é o mesmo usando Firefox 64.0.2 e Chrome 71.0.3578.98 em MacOs Mojave (10.14.2).

Agradeço um help para poder começar a usar o locaweb style com Meteor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant