-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于angularjs引入GridManager报错的问题请教。且readme留的二维码已经失效了。 #285
Comments
可以参考下angular1.x的demo |
感谢回复,我看demo里面引入并注入angularjsApp的方式是这样的 我是通过npm的方式,安装的。 |
import 'gridmanager/index.css'; |
我也不知道是webpack工程环境问题,还是我安装的版本问题,始终不能正常引入到项目中,一直都报那个错。【叹气】 |
可以把你的webpack配置放出来看看 |
感谢您的邮件回复,webpack配置,和程序的主入口文件我都放在附件里面了,请帮我检查一下是什么问题。
…------------------ 原始邮件 ------------------
发件人: "baukh789/GridManager" ***@***.***>;
发送时间: 2023年4月14日(星期五) 下午5:04
***@***.***>;
***@***.******@***.***>;
主题: Re: [baukh789/GridManager] 关于angularjs引入GridManager报错的问题请教。且readme留的二维码已经失效了。 (Issue #285)
可以把你的webpack配置放出来看看
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
没有的哈,github issue不支持邮件这样子的 |
`const path = require('path') const isMock = config.mock function resolve(dir) { function assetsPath(_path) { `/**
// 统计中心 // 登录首页和初始化 require('angular-ui-bootstrap') // 参数 |
import 'gridmanager/index.css'; angular.module('app', [uiRouter, 'ui.bootstrap', nguitree, treeControl, services, factory, ngFileUpload, components, system, main, statistics, outputManage, input, declaration, index, GridManager]) |
我已经这样做过了,但是我启动程序就会报错。因为要开发别的功能我就暂时把那个引入又去掉了的。
…------------------ 原始邮件 ------------------
发件人: "baukh789/GridManager" ***@***.***>;
发送时间: 2023年4月14日(星期五) 下午5:23
***@***.***>;
***@***.******@***.***>;
主题: Re: [baukh789/GridManager] 关于angularjs引入GridManager报错的问题请教。且readme留的二维码已经失效了。 (Issue #285)
import 'gridmanager/index.css';
import GridManager from 'gridmanager/angular-1.x';
angular.module('app', [uiRouter, 'ui.bootstrap', nguitree, treeControl, services, factory, ngFileUpload, components, system, main, statistics, outputManage, input, declaration, index, GridManager])
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
import GridManager from 'gridmanager/angular-1.x.js'; var index = angular.module("myApp", ['$gridManager']); |
这样引入更不行啦,import引入的GridManager 都没有使用到 |
angularjs1.5的版本,通过npm安装包,并注入到程序中报错。
Module parse failed: Unexpected token (1:6139)
You may need an appropriate loader to handle this file type.
The text was updated successfully, but these errors were encountered: